I want a pipeline to trigger automatically when Pull Request is CLOSED/Merged.
@Ronak Toshniwal hi. Thanks for your question. Check this guide:
image: node:10.15.0pipelines: default: - step: name: Build and test script: - npm install - npm testbranches: staging: - step: name: Clone script: - echo "Clone all the things!"
Regards, Igor
Hi igorThanks for the answer i want to know how to fire pipeline when PR IS MERGED currently it is running on PR creation.
@Ronak Toshniwal check in example this:https://bitbucket.org/atlassian/aws-cloudformation-deploy/pull-requests/51
Initial build when pr created was this one:https://bitbucket.org/atlassian/aws-cloudformation-deploy/pipelines/results/334
And when pr was merged next build ran:
https://bitbucket.org/atlassian/aws-cloudformation-deploy/pipelines/results/335
And configuration is the next:
pipelines: default: -- when pr created - <<: *setup - <<: *test - <<: *release-devbranches: master: -- when pr merged to master - <<: *setup - <<: *test - <<: *push
Thanks igor
It looks like you're new here. Sign in or register to get started.