we are using Bamboo 7.2.1 and were wondering if there is an option to create a build plan that only builds pull requests of a given repository. The thing is that a pull request build should not execute the maven deploy task, but only maven verify.
We make use of the built-in Bamboo feature to create plan branches when a pull request is created, the problem is, that we cannot distinguish within the plan, whether it is running for a branch or for the master.
Any help is really appreciated.
There's runtime variable which has branch name so you can check at some script task or task condition if it's master or dev branch. More details at https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html