詹金斯投票不';无法在Github中检测提交

詹金斯投票不';无法在Github中检测提交,git,jenkins,github,jenkins-plugins,polling,Git,Jenkins,Github,Jenkins Plugins,Polling,我目前正在Jenkins中使用“轮询SCM”选项,轮询频率设置为1分钟。我的目标是在轮询检测到Github中的提交时触发构建作业。然而,尽管多次提交到“功能”分支,轮询并没有检测到提交。它会持续显示类似以下内容的消息: Started on May 18, 2018 4:51:00 PM Using strategy: Default [poll] Last Built Revision: Revision ecf20b8hhh2f3d63b5809mle268024500364f2fb (

我目前正在Jenkins中使用“轮询SCM”选项,轮询频率设置为1分钟。我的目标是在轮询检测到Github中的提交时触发构建作业。然而,尽管多次提交到“功能”分支,轮询并没有检测到提交。它会持续显示类似以下内容的消息:

Started on May 18, 2018 4:51:00 PM
Using strategy: Default
[poll] Last Built Revision: Revision 
ecf20b8hhh2f3d63b5809mle268024500364f2fb 
(refs/remotes/origin/feature/template-api)
> /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials 
Setting http proxy: surf.proxy.company:80
> /usr/bin/git ls-remote -h https://github.developer.company.com/my- 
project.git # timeout=10
Found 3 remote heads on https://github.developer.company.com/my-project.git
Done. Took 3.7 sec
No changes
我的管道脚本如下所示:

node {
   stage('Preparation') {
      git (
          poll: true,
          branch: 'feature/template-api',
          credentialsId: '8u56qwcf-e74e-44z3-9437-c81b19cd3a29',
          url: 'https://github.developer.company.com/my-project.git'
      )
   }
}

在我的詹金斯配置中,我只选择了“轮询SCM”。如何检测Github中的更改并触发构建过程

我怀疑您希望您的分支名称是
'origin/feature/template api'