I have a bitbucket-pipelines.yml file in the root directory of my Project.However when ever I push new code to the master branch its not getting run automatically.I have to go to the commits history and explicitly run the pipeline for them. I want to run these pipeline whenever I push some changes to the master branch.Please let me know if I am doing anything wrong so that its not automatically triggering the bitbucket-pipelines.yml
Can you provide a copy of the yml file?
yeah sure @Steve Thornhill...there you go!!options: docker: truepipelines: branches: development: - step: #node image with aws-cli installed image: mesosphere/aws-cli script: # aws login - eval $(aws ecr get-login --region ${AWS_DEFAULT_REGION} --no-include-email) # docker - export BUILD_ID=$BITBUCKET_BRANCH_$BITBUCKET_COMMIT_$BITBUCKET_BUILD_NUMBER - docker build -t ${AWS_REGISTRY_URL}:$BUILD_ID . - docker push ${AWS_REGISTRY_URL}:$BUILD_ID - docker tag ${AWS_REGISTRY_URL}:$BUILD_ID ${AWS_REGISTRY_URL}:development - docker push ${AWS_REGISTRY_URL}:development
Please guide me what mistake I am making
From looking at that, it would trigger when you push to the development branch.
If you need to trigger on the master branch then you will need to add an additional section
ie under branches add master: followed by the commands
It looks like you're new here. Sign in or register to get started.