/cicd-tooling-skills:bamboo-pipeline-yaml-and-java-specsfrom cicd-tooling-skills
Authors Atlassian Bamboo pipeline definitions in Java DSL (Bamboo Specs) or YAML format. Covers plan/job/stage hierarchy and linking specs to live Bamboo plans.
Ships in cicd-tooling-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Atlassian Bamboo predates most "pipeline as code" conventions and historically configured plans through its web UI. Bamboo Specs bring plans under version control two ways: a Java DSL (compiled and run as a small program that calls the Bamboo REST API to create/update a plan) or Bamboo's newer YAML specs format (a declarative file read directly from the repo, closer to GitHub Actions/GitLab CI in spirit). This skill covers both, plus Bamboo's plan → job → stage → task hierarchy (distinct from GitHub Actions' workflow → job → step or GitLab's stage → job model) and the mechanics of linking a Specs definition to a live Bamboo plan so changes actually take effect.
atlassian-bamboo-specs artifact alongside
Bamboo server releases and mismatches cause API-shape errors).atlassian-bamboo-specs dependency
matching the target Bamboo server's version.bamboo-specs/ (or configured path) directory in the
repo containing the .yaml files.Decide Java DSL vs. YAML specs. Java DSL gives full programmatic control (loops, shared builder functions across many plans, real unit testing of the Specs code itself) at the cost of a compile step and more boilerplate; YAML specs is declarative, easier to review in a PR diff, and closer to what teams coming from GitHub Actions/GitLab expect, but less expressive for highly dynamic plan generation. Use Java DSL when one team maintains dozens of structurally-similar plans programmatically; use YAML specs for a single project's plan that a broader team needs to read/edit without Java tooling.
Model the plan/job/stage/task hierarchy explicitly. Bamboo's structure, top to bottom: Plan (the overall pipeline) → Stage (sequential; stages run one after another) → Job (parallel within a stage; jobs in the same stage run concurrently on available agents) → Task (an individual step within a job, e.g. "Source Code Checkout", "Script", "JUnit Parser").
Write a Java Specs plan. A minimal plan with a build stage (parallel test jobs) and a deploy stage:
package com.example.bamboo;
import com.atlassian.bamboo.specs.api.BambooSpec;
import com.atlassian.bamboo.specs.api.builders.plan.Plan;
import com.atlassian.bamboo.specs.api.builders.plan.Stage;
import com.atlassian.bamboo.specs.api.builders.plan.Job;
import com.atlassian.bamboo.specs.api.builders.project.Project;
import com.atlassian.bamboo.specs.api.builders.task.ScriptTask;
import com.atlassian.bamboo.specs.api.builders.task.CheckoutItem;
import com.atlassian.bamboo.specs.api.builders.task.VcsCheckoutTask;
import com.atlassian.bamboo.specs.util.BambooServer;
@BambooSpec
public class CheckoutApiPlanSpec {
Plan plan() {
return new Plan(
new Project().key("CHK").name("Checkout Services"),
"Checkout API", "CHKAPI")
.stages(
new Stage("Build & Test")
.jobs(
new Job("Unit Tests", "UNIT")
.tasks(
new VcsCheckoutTask()
.checkoutItems(new CheckoutItem().defaultRepository()),
new ScriptTask().inlineBody("npm ci && npm test")
),
new Job("Lint", "LINT")
.tasks(
new VcsCheckoutTask()
.checkoutItems(new CheckoutItem().defaultRepository()),
new ScriptTask().inlineBody("npm ci && npm run lint")
)
),
new Stage("Deploy to Staging")
.jobs(
new Job("Deploy", "DEPLOY")
.tasks(
new ScriptTask().inlineBody("./deploy.sh staging")
)
)
);
}
public static void main(String[] args) {
BambooServer bambooServer = new BambooServer("https://bamboo.example.com");
bambooServer.publish(new CheckoutApiPlanSpec().plan());
}
}
Running main (e.g. mvn compile exec:java) calls the Bamboo REST API
to create or update the CHK-CHKAPI plan to match this definition —
note that stages run sequentially ("Build & Test" completes before
"Deploy to Staging" starts) while the two jobs within "Build & Test"
run in parallel.
Or write the equivalent as Bamboo YAML specs, committed as
bamboo-specs/plan.yaml in the repo (Bamboo Data Center reads this
directly, no compile step):
version: 2
plan:
project-key: CHK
key: CHKAPI
name: Checkout API
stages:
- Build & Test:
jobs:
- Unit Tests
- Lint
- Deploy to Staging:
jobs:
- Deploy
Unit Tests:
tasks:
- checkout:
force-clean-build: false
- script:
- npm ci
- npm test
Lint:
tasks:
- checkout:
force-clean-build: false
- script:
- npm ci
- npm run lint
Deploy:
tasks:
- script:
- ./deploy.sh staging
repositories:
- checkout-api-repo
Link the Specs definition to the live plan. For Java DSL, this
linkage happens the first time bambooServer.publish(plan()) runs
successfully against a plan key that doesn't yet exist (it creates the
plan) or does exist (it updates it to match). For YAML specs, add a
"Bamboo Specs" repository trigger on the project (or a dedicated
"specs" plan) pointed at the repo/path containing bamboo-specs/*.yaml
— Bamboo then re-syncs the target plan automatically on each push that
changes the specs file.
Verify the linkage, don't assume it worked. After publishing/ syncing, open the plan in the Bamboo UI and confirm the stage/job/task structure matches the Specs source — a Specs run that throws a permission or validation error partway through can leave the live plan in a partially-updated state.
Keep secrets in Bamboo's own variable/credential store
(project- or plan-level variables marked as passwords), referenced by
name in Specs/YAML (${bamboo.deploy_token}), never inlined in the
Java or YAML source.
CHK/CHKAPI) chosen once —
Bamboo keys are effectively permanent identifiers baked into build
numbers, artifact URLs, and REST API paths.Plan/Stage/Job construction across each plan's
Spec class..manual() in Java Specs, or the equivalent
approval configuration in YAML) for production deploy stages so a human
gate exists before the "Deploy to Production" stage runs, mirroring the
manual-approval-gate guidance in
ci-cd-pipeline-design.Symptom: Running the Java Specs main method throws an
authentication/permission error and the plan is left half-created (some
stages present, others missing).
Fix: Verify the service account used by BambooServer has "Create
Plan"/"Edit Plan" permission on the target project before running
publish, and re-run the full publish after fixing permissions — a
partial publish is not automatically rolled back, so always open the
plan in the UI afterward to confirm it matches the Specs source.
Symptom: Two jobs in the same stage that are supposed to run one after another (e.g. "build" then "package" using the build's artifact) instead run concurrently and "package" fails because the artifact isn't ready. Fix: Jobs within one Bamboo stage always run in parallel by design; a genuine sequential dependency between two units of work needs to be two separate stages, not two jobs in the same stage.
Symptom: YAML specs changes pushed to the repo don't appear to update the live plan at all. Fix: Confirm the project has a Bamboo Specs repository trigger configured and pointed at the correct path containing the YAML files — without that trigger (or a manually-run specs sync), pushing YAML changes to the repo does nothing on its own; YAML specs are not auto-discovered without this explicit linkage.
Symptom: A plan's build number/history appears to reset or a new
duplicate plan gets created instead of updating the existing one.
Fix: This happens when the Specs project/plan key doesn't exactly
match the existing plan's key — publishing with a new key creates a new
plan rather than updating the old one; double check project-key/key
(YAML) or .key(...) calls (Java) match the live plan exactly before
publishing.
Symptom: A teammate edits the plan directly in the Bamboo UI "just this once," and the next Specs publish silently reverts their change. Fix: Once a plan is Specs-managed, all changes should go through the Specs source and a normal publish/sync — treat a direct UI edit on a Specs-managed plan as a bug to fix in the Specs source, not a legitimate parallel path, and communicate this to the team explicitly.
Scenario: A team migrates a UI-configured Bamboo plan for a Java service to YAML specs, adding a manual-gated production deploy stage after the existing staging deploy.
bamboo-specs/plan.yaml:
version: 2
plan:
project-key: PAY
key: PAYSVC
name: Payment Service
stages:
- Build & Test:
jobs:
- Build
- Unit Tests
- Deploy Staging:
jobs:
- Deploy Staging Job
- Deploy Production:
manual: true
jobs:
- Deploy Production Job
Build:
tasks:
- checkout:
force-clean-build: false
- script:
- mvn -B compile
Unit Tests:
tasks:
- checkout:
force-clean-build: false
- script:
- mvn -B test
- test-parser:
type: junit
test-results: "**/target/surefire-reports/*.xml"
Deploy Staging Job:
tasks:
- script:
- ./deploy.sh staging
Deploy Production Job:
tasks:
- script:
- ./deploy.sh production
repositories:
- payment-service-repo
With manual: true on "Deploy Production", the stage waits for a user
with plan permission to click "Run" in the Bamboo UI, giving the same
release gate as the manual-approval pattern in
ci-cd-pipeline-design,
expressed in Bamboo's own stage-level construct.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bamboo-pipeline, ci-cd, yaml-specs, java-dsl, atlassian-bamboo
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin cicd-tooling-skills13 skills in this plugin
/aws-codepipeline-and-codedeployDesigns AWS CodePipeline stage/action structure and integrates it with CodeDeploy deployment groups and appspec.yml for EC2/on-prem, ECS, or Lambda deploys. Use when the user asks to "set up CodePipeline," "add a CodeDeploy deployment group," "write an appspec.yml," "wire CodePipeline to CodeDeploy," "troubleshoot a stuck/failed CodePipeline action," or "add a manual approval action before an AWS deploy."
/azure-pipelines-yaml-and-multi-stageDesigns Azure Pipelines YAML (azure-pipelines.yml), multi-stage pipelines with environments/approvals, templates for reuse across repos, and self-hosted vs. Microsoft-hosted agent pools. Use when the user asks to "set up Azure Pipelines," "write an azure-pipelines.yml," "add a multi-stage pipeline with approvals," "create a reusable pipeline template," "configure a self-hosted agent pool," or "troubleshoot a stuck/failed Azure DevOps pipeline run."
/complete-cicd-pipeline-deployment-for-kubernetes-from-scratchBuilds a complete CI/CD pipeline for a Kubernetes-targeted service from an empty repo — source checkout, container image build, SCA/SAST security gates, registry push, and a deploy step that ends at a GitOps handoff (committing a new image tag to a manifests repo) rather than a direct kubectl apply or helm upgrade against the cluster. Use when the user asks to "build a full CI/CD pipeline for Kubernetes from scratch," "set up CI/CD that ends in a GitOps commit, not a cluster deploy," "wire a container build pipeline into Argo CD/Flux," or "go from an empty repo to a Kubernetes service deployed via GitOps end-to-end."
Other plugins' skills for the same job