Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipeline does not run on Dev branch

I am trying to set up a simple pipeline for s3 deploy and adding the below bitbucket-pipelines.yaml to my dev branch on a private repository.

I pushed the file but but the pipeline doesnot get triggered. Below is the error:

Hmm... can't find that one

That file or directory doesn’t exist. Go back to the previous page and try another one.

bitbucket-pipeline.yaml:

# This is a build configuration for Go.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: atlassian/default-image:2

pipelines:
branches:
Dev:
- step:
name: Build artifact
script:
- ls -ltr
- echo "folder already present"
- step:
name: Deploy DEV
deployment: Test
script:
- pipe: atlassian/aws-s3-deploy:0.3.5
variables:
AWS_ACCESS_KEY_ID: $xxxxxxxxx
AWS_SECRET_ACCESS_KEY: $xxxxxxxxx
AWS_DEFAULT_REGION: $xxxxxxxxx
S3_BUCKET: xxxxxxxxx
LOCAL_PATH: './folder'
EXTRA_ARGS: '--exclude .gitignore --exclude bitbucket-pipelines.yml'

master:
- step:
name: Deploy PROD
deployment: Production
script:
- pipe: atlassian/aws-s3-deploy:0.3.5
variables:
AWS_ACCESS_KEY_ID: $xxxxxxxxx
AWS_SECRET_ACCESS_KEY: $xxxxxxxxx
AWS_DEFAULT_REGION: $xxxxxxxxx
S3_BUCKET: $xxxxxxxxx
LOCAL_PATH: './folder'
EXTRA_ARGS: '--exclude .gitignore --exclude bitbucket-pipelines.yml'

1 answer

1 accepted

0 votes
Answer accepted

Hi @Sri Karan Sevilimadu Chakravarthy and welcome to the community.

I would like to ask a few questions so we can better help you with this issue:

1. Can you please double check if the YAML file in your repository is named bitbucket-pipelines.yml ?

The name you mention in your post is bitbucket-pipeline.yaml instead, so I just want to make sure whether the file is named correctly in the repo.

2. I see in the contents of your YAML file that branch "Dev" is used with a capital 'D'.

Is this how the branch is named in your repo as well? Or is the branch in the repo in lower case letters, 'dev'?

3. Does the YAML file exist in the dev branch of the repo?

4. Which page exactly gives you the error you mentioned?

Is it the Pipelines page of the repo? The Source page of the repo? Or opening a certain file of the repo in Bitbucket UI? Or a different page?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

4,011 views 69 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you