The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Timothy Miller
May 22, 2018

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Edwin Kyalangalilwa
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 Champions.
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

Timothy Miller
May 22, 2018

@Edwin Kyalangalilwa- 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 Kyalangalilwa
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 Champions.
May 22, 2018

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

TAGS
AUG Leaders

Atlassian Community Events