Automatic Build is not triggering on open Pull request - once i create a branch, commit, push and create Pull request (PR). The automatic build is NOT triggering. due to which i am not sure if build is success or not and i cant merge to master.
What do we need to do ? (it use to work but suddenly stopped working past 2 days)
Welcome to the community!
Just to confirm the behavior did you check and confirm if your YAML has the "pull-request" triggers option? You need this pipeline trigger to trigger the build so it started when you create a pull request and that the branches glob patterns is configured correctly as the following example:
pipelines: pull-requests: '**': #this runs as default for any branch not elsewhere defined - step: script: - ... feature/*: #any branch with a feature prefix - step: script: - ... branches: #these will run on every push of the branch staging: - step: script: - ...
If all is configured correctly, then navigate to repositories settings > Webhook > click view request for pipelines and locate the one that has pull request created/updated triggers and enable the history. Then reproduce the issue and view the history logs to see if the triggers actually trigger or not. If there are no logs when you create a new pull request then most likely there's an issue with the Webhook and may need to investigate the issue further.
I hope this helps.
Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events