Overview

About

This is a mass deletion script for Bamboo branch plans, originally crafted as a repair job for instances affected by BAM-13698.

THIS SCRIPT DELETES BUILDS. USE AT YOUR OWN RISK.

Installation

Requires node.js.

$ git clone https://bitbucket.org/tpettersen/bam-13698-repair-script.git
$ cd bam-13698-repair-script
$ npm install

Example Usage

The following invocation deletes branch builds CONNECT-CF-70 thru CONNECT-CF-952, but leaves CONNECT-CF-90 and CONNECT-CF-951 intact.

BAMBOO_USERNAME=admin \ 
BAMBOO_PASSWORD=admin \ 
BAMBOO_URL=https://bamboo.mycompany.atlassian.com/ \
PLAN_PREFIX=CONNECT-CF \
PLAN_START_IDX=70 \
PLAN_END_IDX=952 \
BUILDS_TO_SKIP=90,951 \
node app.js