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,362,245
Community Members
 
Community Events
168
Community Groups

Set an Elastic Image as the "default" image for Bamboo

We've run into an interesting conundrum with using Elastic Agents. We have two elastic images, one Linux, one Windows.  Both images have a base set of capabilities in common (Maven versions, JDK and a few others).  The issue we're having is that, if a plan defines a set of requirements that are only filled by the base capabilities (say only needs Maven) Bamboo won't be guaranteed to launch the Linux based image.  This becomes a problem when the plan is actually expecting a Linux file system (a user script in the OOB script task for example).  Is there a way to tell Bamboo to, in cases where a plans requirements could be met by more than one Elastic Image, to default to a specific image?

1 answer

0 votes
edwin Rising Star May 22, 2018

Hi @Timothy Miller,

An option is to add a Custom capability in the agents configuration then in your plan adding a requirement that matches your custom capability.

For example: "key: OS = value: Linux" and then under requirements of the plan.

Screen Shot 2018-05-22 at 11.35.15.png

@edwin- Already thought of that, the problem is that we have 1000s of plans with multiple stages which would need to be updated with that value.  We're currently dedicating plans that require Windows to the Windows based images but would like to get away from that as it adds a manual administration step to what is generally an automated self-service process for our end users.

edwin Rising Star May 22, 2018

Ah gotcha! I see now - that makes it complicated.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events