/
How to remove all jobs in Bamboo plan using Bamboo Command Line Interface (CLI)

How to remove all jobs in Bamboo plan using Bamboo Command Line Interface (CLI)

This article explains how to remove all jobs in a Bamboo plan using the Bamboo Command Line Interface (CLI) app.

Instructions

Use the runFromJobList and removeJob actions to remove all tasks in a Bamboo plan. Refer to the following sample command:

--action runFromJobList --plan DEMO-TEST --common "--action removeJob --plan @plan@ --job @job@ "


In the above action,

  • --plan value refers to the plan name in Bamboo.
  • --job value refers to the job name in Bamboo.

It is recommended to test the commands in a non-production environment or run the action with --simulate parameter to verify the behavior before deploying.

Related content