×
Find plugins

Multibranch Job Tear Down
1.0Minimum Jenkins requirement: 2.115ID: multibranch-job-tear-down

Installs: 5
Last released: 14 days ago
Maintainers
Cesar Aguilar


This plugin triggers/schedules a job to run when a multibranch workflow job is disabled or deleted. Essential use case is you have a multibranch job that spins up some infrastructure like a server, when the job is deleted this plugin enables you to tear down said infrastructure and clean up after yourself.

Basic Setup

There are three ways to use this plugin but they require that you create a job that accepts a String parameter of `git_url` and `branch_name`.

Express Setup

Simply create a job named `job-tear-down-executor` the plugin automatically detects if this job is present and will send all branch deletions to this job.

Configure the Job

In the global setting section of Jenkins you can configure the job name that should be executed if you don't want to call your job `job-tear-down-executor`

Customize for your pipeline

If you need more fine tune control of which job to execute you can include the following in your pipeline. 

Pipeline Example
//Scripted Pipelines
properties([branchTearDownExecutor('my-special-job')])

//Declarative Pipelines
options {
  branchTearDownExecutor 'my-special-job'
}


Change Log

- 1.0

  • Initial Version


ArchivesGet past versions
Labels
This plugin has no labels