Executing code when a branch is removed in Jenkins' multi branch pipeline

后端 未结 2 1280
闹比i
闹比i 2021-02-05 21:31

I have a Jenkins that uses multi branch project. That is, when a new branch is created to repository, Jenkins automatically will automatically create a new job for the branch, a

2条回答
  •  时光取名叫无心
    2021-02-05 22:11

    Nowdays there is multibranch-action-triggers-plugin. This seems have the functionality I asked for. Not tested though.

    This plugin enables building/triggering other jobs when a Pipeline job is created or deleted, or when a Run (also known as Build) is deleted by a Multi Branch Pipeline Job.

提交回复
热议问题