How to configure Ivy repository isolation?

There's a section of the Bamboo documentation that deals with isolating repositories for Maven executables. We're running into similar problems with Ivy, when multiple stages are run in parallel and cause issues with the shared Ivy repository.

In order to solve this problem, we'd like to configure each agent to have their own isolated Ivy repository. This could be acheived if there was a Bamboo build-time variable identifying the agent that the build is being run on. However, looking at the variable documentation, I can't see any such variable. Does any such variable exist?

If not, does anyone else have any ideas how this might be resolved?

3 answers

1 accepted

0 vote

I don't think we have a variable for that atm. What you could do instead (apart from writing a plugin):

  • on remote agents, set an environment variable in a script starting the agent. Your best option would be the content of <id> tag from bamboo_agent_home/
  • on local agents, it's trickier you can extract the id from variable called "" It will be the last number in the path right before the string avaialble in "buildKey" variable.

I've opened an improvement request to make agent id available via a variable - please watch and vote.

You can also use bamboo.agentId on recent versions of Bamboo.

------- -----------

hello,This is a wholesaler's web site.

Items, fashion, and: popular personality.

Product quality,commodity price is absolutely!

Always deeply overseas friends love and support.

Please stop you progress in your choice so, need!!!!!

------- ------------

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

47 views 1 3
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