如何调试Jenkins Multibranch扫描 - 不处理新分支

时间:2017-05-07 20:48:48

标签: jenkins jenkins-pipeline

我在詹金斯有一个多分支管道项目。我有两个主要分支(主和生产)正确运行一段时间。但其中一个步骤是构建新版本的node docker image(在奴隶Raspberry pi上),以获得生产系统的最终基础。我觉得在自己的分支中隔离该步骤会更好,以便我们可以控制何时升级版本。

所以我做了一个名为" node"并将Jenkinsfile更改为只有在其中构建节点的步骤。我还提升了它要构建的节点版本(到7.10.0)。

Multibranch索引查找新分支,但随后不执行任何操作。我如何找出原因?

以下是扫描/索引运行的输出

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 alan@kanga.home:dev/pasv5
 > git config remote.origin.url alan@kanga.home: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 alan@kanga.home:dev/pasv5 # timeout=10
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to alan@kanga.home:dev/pasv5
 > git config remote.origin.url alan@kanga.home: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

masterproduction注意到Jenkinsfile找到了node,但在#wrapper { text-align: center; width: 500px; height: 200px; border: 1px solid black; } .element { display: inline-block; } .element > span { display: none; } .element:hover > span { display: inline; }它没有。为什么呢?

0 个答案:

没有答案