Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to programmatically change bamboo tasks (like enable and disable)

Is there a way to programmatically change bamboo tasks (like enable and disable)

 

i noticed the details of tasks are stored in xml_definition_data.  is there a plugin that allows for disabling or enabling programmatically?

 

thanks

1 answer

1 vote

Hi @lance_lyons

There is no public API to change this flag directly, but I see two other options that may help:

  1. Use Bamboo specs. In specs the following code part would disable the task:
    .stages(new Stage("Default Stage")
    .jobs(new Job("Default Job", new BambooKey("JOB1"))
    .tasks(new ScriptTask().enabled(false)
    More details about specs can be found here: Bamboo Specs - Atlassian Documentation.
  2. Use the Conditional tasks for Bamboo plugin to allow you enabling/disabling tasks based on variables or users running them.
    More details about this plugin can be found in this post:
    How we can configure job with conditional tasks for bamboo plugin? - Atlassian Community

I hope those options can help you.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

213 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you