Skip to content

Provides various options to tear down a folder which may contain WorkFlow or MuliBranch Pipeline Jobs

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

RohitKBhatnagar/folder-tear-down

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folder Tear Down

Introduction

This plugin is intended to support cleanup of any resources defined within the folder tree, these include cleanup of WorkFlow/Multi-Branch pipelines including credentials defined within the folder tree. Currently it is designed to work with Multibranch pipeline projects. When a particular branch is deleted, this plugin will trigger another job with the git_url and branch_name of the job being deleted. This way you can perform any cleanup you desired like bringing down servers.

Requirements

  • Jenkins version 2.426.3+

Getting started

By default this plugin looks for a job called job-tear-down-executor. You may also specify the job to use by going to Manage Jenkins and configuring the Job Name under Folder Tear Down Plugin. Additionally, you may use branchTearDownExecutor in your pipeline to specify a specific job to use for that branch.

Example in pipeline

// Scripted Pipelines
properties([branchTearDownExecutor('my-special-job')])
 
// Declarative Pipelines
options {
  branchTearDownExecutor 'my-special-job'
}

Issues

Report issues and enhancements in the Jenkins issue tracker.

Contributing

Refer to our contribution guidelines

LICENSE

Licensed under MIT, see LICENSE

About

Provides various options to tear down a folder which may contain WorkFlow or MuliBranch Pipeline Jobs

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published