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:
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'
Hi @[deleted] 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.