Start a Bamboo Plan with a specific Job


i have a Bamboo Plan with 5 Jobs.

Job 1 activ

Job 2 activ

Job 3 activ

Job 4 activ

Job 5 activ

My Question is, do i have the possibility to start this bamboo plan with one job like "Job 2" without deactived the other jobs.

Bamboo 4.4.8 build 3511

3 answers

You can use the Script task (within the Job) and write an if-then condition to execute that particular job or not, otherwise, proceed to the next job (which will have it's own condition and so forth).

but tha mean, i have to modify all jobs?

or do i have to creat a JOB mit that script?

AND can i have an example for that script plzz?

Using the script task, you will need to modify your jobs. First of all you need a script task per job.

Create a script task "inline" something like:

if [[ ${bamboo.repository.git.branch} == release* ]]; then
execute tasks

(this script executes tasks when my branch is a named "release*")

So with multiple jobs (you will need to consolidate your existing tasks in this script), it would look something like:

Job 1:

if [[ ${bamboo.repository.git.branch} == release* ]]; then
execute job1 tasks

Job 2

if [[ ${bamboo.repository.git.branch} == release* ]]; then
execute job 2 tasks

Job 3

if [[ ${bamboo.repository.git.branch} == release* ]]; then
execute job 3 tasks

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,094 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot