Jenkins delete jobs when branch deleted via branch-indexing

前端 未结 2 1061
忘掉有多难
忘掉有多难 2021-01-01 13:16

Is there a way to tell Jenkins (2.2) to remove jobs for branches that were deleted? Currently my build-monitor fills up with branches as the jobs are not deleted. Is there a

2条回答
  •  天涯浪人
    2021-01-01 14:13

    1) Go to Manage Jenkins -> Global Tool Configuration -> Git -> Add Git -> Choose JGit.

    2) Then go to your multibranch pipeline configuration and choose JGit instead Default under Branch Sources -> Git Executable

    3) Press Branch Indexing -> Run now

    Old branches should go away now

提交回复
热议问题