You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hey Atlassian community,
Aneita from the Bitbucket Pipelines team here. We're proud to announce that the highest voted feature request for Bitbucket Pipelines - running pipelines on pull request creation or updates - is now available for you to use!
You can now configure Pipelines to create a temporary merge containing the changes in the pull request and the destination branch, with the defined pipeline run on the merge result. This provides developers with faster feedback on possible breaking changes and gives reviewers more confidence in approving a pull request.
It's easy to configure Pipelines to run when a pull request is open by using the pull-requests keyword in your bitbucket-pipelines.yml file.
Ready to get started? Read our blog for more information and let the team know if you have any questions about the feature in a comment below.
Happy coding!
Aneita
Bitbucket PM
Hey Tom,
That's the intended behaviour of the feature. Pull request builds only run when the source branch is updated. Updates to the destination branch will not result in a new build running.
These builds don't act as gate-keeper builds, but if that is something that you're interested in, feel free to raise an open feature request for consideration.
Thanks for adding this. It is indeed very useful for pending pull requests but I can't seem to make it work.
I've added the following to my development branches but new pull requests are **not** causing the pipeline to run.
pipelines: pull-requests: '**': - step: caches: - pip script: - /tools/clean-launch.sh tox --skip-missing-interpreters -e py27,py37 -- -qrf
My understanding that '**' should run on all new or updated pull requests but this is not happening. FWIW the pipeline log is at https://bitbucket.org/openpyxl/openpyxl/addon/pipelines/home#!/
While I do very much appreciate pipelines I do find the syntax a little challenging and, more importantly, the lack of the ability to do a "dry run" of the configuration frustrating. I can either edit the file online and try and make sense of the error messages, or work offline and hope that the file is valid.
Hey @CharlieC,
Thanks for reaching out. Can you please raise a support ticket so that we can look at your repository in more detail? Your pipelines configuration looks valid to me so we'll need to dig deeper into why it's not working.
As for your suggestion about doing a 'dry run', I can definitely see the value in that. If that's something you're interested in, you can vote for our open feature request.
Actually, looking at your YML configuration again, you indentation seems to be off (although I'm not sure if that's a result of copying/pasting).
The "- step:" and everything below it needs to be further indented.
Thanks for the note. I'll give it a try.
The use of whitespace in these files is confusing. I've attempted to keep the same structure as I have in the default part. Again this is not helped by not being able to test the configuration. Particularly in the case of pull requests I now have to wait for one to be created to see if it has any effect.
I increased the indentation but this did not cause the pipeline to run when a new pull request was submitted.
Hey @CharlieC, can you please raise a support ticket so that we can look at your repository in more detail?