← Back to DevBytes

Bamboo: Complete Configuration Guide

Bamboo: Complete Configuration Guide

What is Bamboo?

Atlassian Bamboo is a continuous integration and continuous delivery (CI/CD) server that automates the building, testing, and deployment of software. It allows development teams to define complex build pipelines, integrate with other Atlassian tools (Jira, Bitbucket, Confluence), and manage artifacts across multiple environments. Bamboo uses a concept called plans to define a series of stages, jobs, and tasks that are executed in sequence or parallel. It supports a wide range of version control systems, build tools, and deployment targets, making it a versatile choice for teams of any size.

Bamboo can be installed on-premises or used as a cloud service (Bamboo Cloud, though note that Atlassian is deprecating Bamboo Cloud in favor of Bitbucket Pipelines; for on-premises it remains active). This guide focuses on Bamboo Server (self-hosted), which gives you full control over the configuration and infrastructure.

Why Bamboo Matters

In modern software development, manual build and deployment processes are error-prone, time-consuming, and create bottlenecks. Bamboo addresses these challenges by providing:

Without a tool like Bamboo, teams often suffer from “works on my machine” issues, inconsistent build environments, and slow release cycles. Bamboo enforces a reproducible, auditable pipeline that increases both speed and reliability.

Getting Started: Installation and Setup

Before you can configure Bamboo, you need a running instance. Here is a high-level overview of the installation process:

Once Bamboo is running and agents are online, you can start creating plans.

Configuring Your First Plan

A plan is the core unit of work in Bamboo. It contains one or more stages, each with one or more jobs, and each job consists of tasks. Here is how to create a simple plan that builds a Java project using Maven:

  1. Log into Bamboo as an administrator.
  2. Click Create > Create plan.
  3. Choose “From a repository” and connect to your Bitbucket, GitHub, GitLab, or other VCS. Provide the repository URL and credentials.
  4. Select the branch detection strategy (e.g., “Including branches” with a naming pattern like feature/*).
  5. Define the plan’s default settings:
    • Plan name: e.g., “My Java App Build”
    • Plan key: a short identifier like JAV
    • Project: assign to an existing project or create a new one
  6. Bamboo will automatically detect common build tools (Maven, Gradle, Ant, etc.) and suggest a default configuration. Accept or customize.
  7. You will see a stage (default “Default Stage”) with a job (default “Default Job”). Click the job to add tasks.
  8. Add a Source Code Checkout task (usually the first task).
  9. Add a Maven task:
    Goal: clean package
    Working directory: (leave empty for root)
    JVM arguments: -Xmx512m
    Maven executable: (default)
  10. Add a JUnit Parser task to collect test results:
    Specify custom ant pattern: **/target/surefire-reports/*.xml
  11. Add an Artifact task to save the built JAR:
    Name: my-app-jar
    Copy pattern: target/*.jar
    Shared: yes (if other stages need it)
  12. Save the plan and run it manually by clicking Run.

Once the plan runs, you can view logs, test results, and artifacts in the Bamboo UI.

Advanced Configuration: Variables, Triggers, and Permissions

Variables

Variables allow you to reuse values across tasks and plans without hard-coding them. There are three levels:

🚀 Need a reliable AI agent for your project?

Deploy Hermes Agent in 10 minutes. Managed hosting, zero DevOps.

Get Started — $23.99/mo
← Back to all articles