2017-05-07 6 views
0

私はJenkinsにマルチブランチパイプラインプロジェクトを持っています。私は2つの主要な支店(マスターとプロダクション)を正しく実行しています。しかし、ステップの1つは、生産システムの最終的なベースのための新しいバージョンのnodeドッカー画像(スレーブラズベリーパイの上に)を構築することです。バージョンをアップグレードするときに私たちが制御できるように、自分のブランチでそのステップを分離する方が良いと感じました。Jenkinsをデバッグする方法マルチブランチスキャン - 新しいブランチを処理しない

私は "ノード"と呼ばれる枝を作り、Jenkinsfileを変更してノードを構築するだけのステップを持っていました。また、ビルドするノードのバージョンを7.10.0に引き上げました。

マルチブランチインデックスは新しいブランチを見つけますが、それには何もしません。理由を知るにはどうすればいいですか?ここで

masterproduction上のスキャン/インデックスの実行からの出力

Started by timer 
[Sun May 07 21:43:00 BST 2017] Starting branch indexing... 
> git rev-parse --is-inside-work-tree # timeout=10 
Setting origin to [email protected]:dev/pasv5 
> git config remote.origin.url [email protected]:dev/pasv5 # timeout=10 
Fetching origin... 
Fetching upstream changes from origin 
> git --version # timeout=10 
using GIT_ASKPASS to set credentials 
> git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* 
using GIT_ASKPASS to set credentials 
> git ls-remote [email protected]:dev/pasv5 # timeout=10 
> git rev-parse --is-inside-work-tree # timeout=10 
Setting origin to [email protected]:dev/pasv5 
> git config remote.origin.url [email protected]:dev/pasv5 # timeout=10 
Fetching & pruning origin... 
Fetching upstream changes from origin 
> git --version # timeout=10 
using GIT_ASKPASS to set credentials 
> git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune 
Getting remote branches... 
Seen branch in repository origin/master 
Seen branch in repository origin/node 
Seen branch in repository origin/production 
Seen 3 remote branches 
Checking branch master 
     ‘Jenkinsfile’ found 
Met criteria 
No changes detected: master (still at 8c4fddfa66f26af0089f0e55afcd2ac9e13152ef) 
Checking branch production 
     ‘Jenkinsfile’ found 
Met criteria 
No changes detected: production (still at fa97e2fd76895c958a484b21fb4d4852ad000c9b) 
Checking branch node 
Done. 
[Sun May 07 21:43:01 BST 2017] Finished branch indexing. Indexing took 0.27 sec 
Finished: SUCCESS 

注であることがJenkinsfileが見つかったノートが、nodeにそれはしていません。どうして?

答えて

1

私のせいで、gitのプロジェクト構成の "Advanced"オプションの下で、考慮する分岐を列挙することができます。私はそこに入れたmasterproductionではなく、nodeです。私がそれを変更するとすぐに、新しいブランチの処理が開始されました。

関連する問題