Skip to main content

CLI for Atlassian Bamboo

Project description

pampu

CLI for Atlassian Bamboo.

Installation

pip install pampu

Or with uv:

uv tool install pampu

Setup

pampu init

This will prompt for your Bamboo URL and Personal Access Token, then save them to ~/.config/pampu/credentials.toml.

Getting a Personal Access Token

  1. Go to your Bamboo instance
  2. Click your avatar (top-right) → Profile
  3. Select "Personal access tokens" tab
  4. Click "Create token"

Usage

List projects and plans

pampu projects                    # List all projects
pampu plans MYPROJECT             # List plans in a project
pampu branches MYPROJECT-BUILD    # List branches for a plan

View builds

pampu builds MYPROJECT-BUILD      # List recent builds
pampu builds MYPROJECT-BUILD -n 20  # Show more builds
pampu status MYPROJECT-BUILD-123  # Show build details
pampu logs MYPROJECT-BUILD-123    # Download and display build logs

Git-aware status

When inside a git repository with Bamboo specs, pampu status can automatically detect the current branch:

pampu status  # Shows status for current git branch

Deployments

pampu deploys                     # Show deployment status (auto-detected from bamboo.yml)
pampu deploys MYPROJECT-BUILD     # Show deployment status for a plan
pampu versions                    # List available versions
pampu version-create              # Create version from latest build on current branch
pampu version-create MYPROJECT-BUILD-123  # Create version from specific build
pampu deploy myversion DEV        # Deploy a version to an environment
pampu deploy myversion ENV1 ENV2 --chain     # Deploy sequentially, wait for each
pampu deploy myversion ENV1 ENV2 --parallel  # Deploy to all simultaneously

For safety reasons, pampu deploy refuses to deploy to any environment containing "PROD" in its name.

Project configuration

Pampu auto-discovers project configuration from bamboo-specs/bamboo.yml:

plan:
  project-key: MYPROJECT
  key: BUILD
  name: my-build

This is parsed to extract the plan key (MYPROJECT-BUILD) and project key (MYPROJECT).

With this config:

  • pampu status detects your git branch and shows the matching Bamboo build
  • pampu deploys shows deployment status without specifying a plan
  • pampu version-create creates a version from the latest build on your current branch

Branch detection extracts ticket numbers (e.g., PROJ-12345) from branch names like feature/PROJ-12345-my-feature and matches them to Bamboo branches.

Commands

Command Description
init Initialize credentials
projects List all projects
plans <project> List plans in a project
branches <plan> List branches for a plan
builds <plan> List builds for a plan or branch
status [build] Show detailed build status
logs <build> Download and display build logs
deploys [plan] Show deployment status
versions [plan] List available versions
version-create [build] Create a version from a build
deploy <version> <env>... Deploy a version to one or more environments

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pampu-0.5.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pampu-0.5.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file pampu-0.5.0.tar.gz.

File metadata

  • Download URL: pampu-0.5.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pampu-0.5.0.tar.gz
Algorithm Hash digest
SHA256 86506eb46ef85762f4890654d27c0f6d6f267f7062aab7fa7adac32b8d1ba4a3
MD5 80e30dbc9399e2b97f39e1fe48fd93e6
BLAKE2b-256 a9c2965be2103798cc371d6c8bc21856f3d71e9147ae37cd065bee0f68300eb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pampu-0.5.0.tar.gz:

Publisher: publish.yml on vivainio/pampu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pampu-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: pampu-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pampu-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1abf119aa48336f8fae917c92d9afb6eb4c649b81d6c7a29dea11228cccdbc0c
MD5 847ad129b9d6f52bda81feaea954aea5
BLAKE2b-256 9f951ef41c4d6bdc96f80f9dee6c9c49cdf90555ba4b7434b3e99049fccb6772

See more details on using hashes here.

Provenance

The following attestation bundles were made for pampu-0.5.0-py3-none-any.whl:

Publisher: publish.yml on vivainio/pampu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page