Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,210
Community Members
 
Community Events
184
Community Groups

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

lance_lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 14, 2019

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
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 19, 2019

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
AUG Leaders

Atlassian Community Events