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'