0
私はJenkinsでマルチブランチパイプラインジョブをセットアップして、自動的にオープンブランチを構築します。しかし、ブランチを閉じてリモートから削除すると、プロジェクトが削除されないようです。私は破棄された項目の設定をチェックして、それが設定されていないことを確認しましたが、リモートから削除されても、Jenkinsがブランチをピックアップしているようです。Jenkinsマルチブランチパイプラインではなく、リモートから削除されたブランチを削除する
たとえば、ブランチ機能/ INT-542-Sampleがリモートから削除されましたが、それでもプルーニング後もJenkinsのブランチとして検出されています。
Started by user Jenkins User
[Wed Jun 07 13:51:52 EDT 2017] Starting branch indexing...
> git rev-parse --is-inside-work-tree # timeout=10
Setting origin to [email protected]: company-ondemand/project-sync.git
> git config remote.origin.url [email protected]: company-ondemand/project-sync.git # timeout=10
Fetching origin...
Fetching upstream changes from origin
> git --version # timeout=10
using GIT_SSH to set credentials Master SSH Key for Git Creation
> git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
using GIT_SSH to set credentials Master SSH Key for Git Creation
> git ls-remote [email protected]: company-ondemand/project-sync.git # timeout=10
> git rev-parse --is-inside-work-tree # timeout=10
Setting origin to [email protected]: company-ondemand/project-sync.git
> git config remote.origin.url [email protected]:company-ondemand/project-sync.git # timeout=10
Fetching & pruning origin...
Fetching upstream changes from origin
> git --version # timeout=10
using GIT_SSH to set credentials Master SSH Key for Git Creation
> git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune
Getting remote branches...
Seen branch in repository origin/develop
Seen branch in repository origin/feature/INT-542
Seen branch in repository origin/feature/INT-542-Sample
Seen branch in repository origin/master
Seen 4 remote branches
Checking branch feature/INT-542
‘Jenkinsfile’ found
Met criteria
No changes detected: feature/INT-542 (still at a88426b7ac1dad632b5df7b4e165aafa12bddce7)
Checking branch develop
‘Jenkinsfile’ found
Met criteria
No changes detected: develop (still at ec776ac8e6c639ea2b395f92e8aad572945ae270)
Checking branch master
‘Jenkinsfile’ not found
Does not meet criteria
Checking branch feature/INT-542-Sample
‘Jenkinsfile’ found
Met criteria
No changes detected: feature/INT-542-Sample (still at ec776ac8e6c639ea2b395f92e8aad572945ae270)
Done.
[Wed Jun 07 13:51:54 EDT 2017] Finished branch indexing. Indexing took 2.2 sec
Finished: SUCCESS