How to change the default capabilities for Elastic Agent Image Configurations in Bamboo

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

    

Summary

It may be desirable to change the default capabilities that are applied to an Image Configuration for Elastic Bamboo / Elastic Agents. This knowledge base article will describe the steps to do this. Please note, the two separate configurations are applied based on Product (aka Operating System) set for the image configuration: Windows or Linux. Templates cannot be configured at a more granular level than this.

Solution

Two files can be found at the below location on your Bamboo server which can be modified:

$BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/
- elastic-image-capabilities.properties
- elastic-image-capabilities-windows.properties
  • elastic-image-capabilities.properties is applied to Linux based configurations 
  • elastic-image-capabilities-windows.properties is applied to Windows based configurations.

Edits to these files do not require Bamboo to be restarted.

The formatting of this file follows the same syntax and rules as the bamboo-capabilities.properties files for remote agents:

Any properties added to, or modified on the elastic-image-capabilities file will only be considered by new Elastic Image configurations, meaning that existing Images will not be modified. If you need capabilities to be added to an existing Image, delete and recreate it.



Last modified on Apr 1, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.