I am using Atlassian Bitbucket server v4.14.12, and would like to know how to trigger a Jenkins job which defines my CD. Is there a way to only trigger this job on successful PR merge to specific branch? ie; I am planning to implement my CD this way:
- If the PR target branch is develop, it should be deployed to test server
- If the PR target is master, it should be deployed to prod server
TIA