Bamboo Configuration File

Bamboo's configuration is primarily managed through its web-based interface, and it doesn't typically rely on single configuration files. Bamboo relies on a distributed configuration model where various configuration settings are stored in different places and files, and many of these settings are managed through its web-based administration interface. The primary configuration files in Bamboo are associated with the Bamboo home directory (BAMBOO_HOME) and Bamboo agents.

Some of the key configuration files and directories in Bamboo are:
  1. Bamboo Home Directory (BAMBOO_HOME): This directory contains many of the configuration files and data for Bamboo. The specific location and structure may vary based on your installation. Important subdirectories and files include:
    • xml-data/: Contains various XML configuration files
    • lib/: May include libraries and JAR files for custom plugins and extensions
    • agent/: Configuration files and data specific to Bamboo agents.
  2. Bamboo Agent Configuration: Each Bamboo agent has its own configuration file named “bamboo-agent.cfg.xml”. This file contains agent-specific settings, including the Bamboo server connection details.
    Sample bamboo-agent.cfg.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <bamboo-agent>
        <!-- Bamboo server URL -->
        <serverUrl>http://bamboo-server:8085</serverUrl>
    
        <!-- Bamboo agent's unique identifier -->
        <agentUuid>YOUR_AGENT_UUID</agentUuid>
    
        <!-- Bamboo agent's display name -->
        <agentName>My Bamboo Agent</agentName>
    
        <!-- Bamboo agent's capabilities -->
        <capabilities>
            <!-- Example capability for Maven -->
            <capability name="system.builder.mvn3.Maven 3" value="/usr/local/apache-maven-3.8.1" />
            
            <!-- Example capability for Node.js -->
            <capability name="system.builder.node.Node.js" value="/usr/local/bin/node" />
        </capabilities>
    
        <!-- Bamboo agent's working directory -->
        <workingDir>/path/to/agent/work</workingDir>
    
        <!-- Bamboo agent's temp directory -->
        <tempDir>/path/to/agent/temp</tempDir>
    
        <!-- Bamboo agent's home directory -->
        <homeDir>/path/to/agent/home</homeDir>
    
        <!-- Bamboo agent's capabilities sharing method (usually "true" or "false") -->
        <sharingCapability>true</sharingCapability>
    
        <!-- Bamboo agent's environment variables -->
        <environmentVariables>
            <environmentVariable name="PATH" value="/usr/local/bin:/usr/bin:/bin" />
            <environmentVariable name="JAVA_HOME" value="/usr/local/jdk1.8.0_291" />
        </environmentVariables>
    
        <!-- Bamboo agent's security token (if required) -->
        <securityToken>YOUR_SECURITY_TOKEN</securityToken>
    </bamboo-agent>