Skip to content

Bamboo plugin that prevents plans from running simultaneously

License

Notifications You must be signed in to change notification settings

ProdriveTechnologies/bamboo-mutex-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bamboo Mutex Plugin

This is an Atlassian Bamboo plugin that allows you to make two or more plans "mutually exclusive". That means that those plans will never be run at the same time, even if agents are available to run them. This is useful if you have shared resources that can only be accessed by one plan at a time.

Installation

Use the Bamboo plugin manager to install the latest version of this plugin's jar from the project's maven repository.

You may have to restart Bamboo after installing the plugin.

Usage

The plugin is configured on the "Miscellaneous" tab of the plan configuration. There is a single text entry field that allows you to specify the mutex "key" for the plan. If two or more plans have the same mutex key (case sensitive), this plugin will prevent them from running simultaneously.

Note that specifying multiple keys on a single plan is not supported right now (could be done as an enhancement if there is demand).

Troubleshooting

On very rare occasions I have observed plans becoming "stuck" - two plans waiting for each other with neither of them being executed. Simply stopping one of them allows things to proceed.

Building From Source

This is built using the standard Atlassian SDK. Full instructions on how to set up and use the SDK are available in the Atlassian plugin SDK documentation.

About

Bamboo plugin that prevents plans from running simultaneously

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 85.4%
  • FreeMarker 9.4%
  • Fluent 5.2%