Plan variables that are based off agent capabilities?

Our project uses a 3rd party SDK which is kept on the build agent. I store the path to this in a capability on the agent. So I have FLEX_4.5 as one capability and FLEX_4.6 as another capability. Currently I am passing these to ant in the task configuration. However, we have one branch that uses 4.5 and one branch that uses 4.6. How can I configure Bamboo so that I can do a branch build using the older SDK? I tried setting a plan variable based off the agent capability but that didn't work.

2 answers

This widget could not be displayed.

How are you passing them to the ant task? (i.e. command arguments?)

I am thinking a hacky approach would be to checkin a properties file in each branch that denotes the version of flex it wants.

flex=4.5

flex=4.6

and then you can use the https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin plugin to set that as a variable, which can be used in the ant configuration.

I am passing them via command arguments to the ant task. I'll take a look at that plugin, thanks.

I'm a little confused as to how this can help me. It doesn't look like it will allow me to access the agent capabilities to get the proper path to the necessary FLEX SDK.

This widget could not be displayed.

I am passing them via command arguments to the ant task. I'll take a look at that plugin, thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 6 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

13 views 0 0
Join discussion

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