Hi,
We have bamboo plan with multiple stages and we would like to skip package stage is there is no pull request. Pipeline is running for every commit now and we would like to create package only when we have PR. i can put a condition in every task to skip, but is there a way we can do it at stage level?
Bamboo Version: 8.0.3 build 80011 - 08 Oct 21
Hello @Shanmuga Sundaram ,
Welcome to the Atlassian community!
You can have your task run based on a condition that checks for a variable. You need to add an Inject Variables Task to your plan that would consume a properties file. Hence, once the variable(s) are set, you can enable the condition on the task so it knows if it should run or not.
Additionally there in our marketplace, we have a plugin offering conditional tasks: Conditional tasks for Bamboo you can find more information on its usage and limitation in this community post: How we can configure job with conditional tasks for bamboo Plug-in.
Kind regards,
Khushboo Gupta
Atlassian Support
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.