Exclude task or job from build in branch-plan

Paul Moors January 21, 2025

Hi,

I do have a post-process job defined in a plan in which I also tag the current commit.
This works fine so far. 
My question: is it possible (and if so how) to disable this job (or the tasks inside that job) for branch-plans to avoid lots of tags being generated?

1 answer

0 votes
Venkata Sateesh Pentela
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 21, 2025

Hi Paul,

Welcome to the Atlassian Community.

If you are looking to disable a particular job only for plan branches, then there is no way.

But we have an option to restrict the execution of task by using the Conditional Tasks based on the branch name.

For example, your default branch is 'main' and you want to execute the specific task only at the default branch ('main') and not in any other plan branches, then you can add a condition with the variable name 'bamboo.repository.branch.name' equals to 'main'. That way the conditional task will not fulfil when it is getting executed as plan branch and the task execution will be skipped.

Regards,
Venkata Sateesh Pentela
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events