Bulk changes to bamboo plan tasks

Hi all,

Is there a way to script bamboo admin changes to plans? I have a tast that runs a script from a network drive and the task is in 100 plans. I can go through them all via the web ui but that's painful. I'd like to be able to make a regex replace on the configurations globally.

On hudson/jenkins I'd modify the xml via a script and reload. On bamboo, I suspect I need to find an API or modify content via SQL scripts. It is also possible that I have more plans than I need. For each branch I have about 10 plans. I need different branches to run with different configurations for JDK and memory but beyond that, they are pretty similar. Perhaps the feature-branch plan option is one I should explore

Please let me know if you know how to push changes to tasks across many plans.

Thanks

Peter

1 answer

Bamboo Command Line Interface has updateTask which has some limited capabilities. There is an example on Examples . It is not easy. You need to know the task specific key and field names. You can get those from a tool like Live HTTP Headers while creating or updating a task. Only worthwhile if you have on-going automation or a very large number of tasks.

Thanks Bob. Do you think field names are likely to change release to release? If they are stable then this seems a better approach than manual. Either way, I think I need to find a way to have more generic plans and scripts with base their specialization off of variables or plan naming to reduce the work load.

Most task plugin providers are unlikely to change the names as it causes compatibily issues. More likely they will just add new ones. For instance, the script task has been the same since I started using it years ago. I certainly haven't for any of my Bamboo tasks. It is possible the UI for creating and editing a task could change on a release boundary potentially requiring a CLI update to handle. This is an interim solution until Bamboo gets around to providing proper configuration remote APIs :(.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

268 views 0 6
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