Jenkins Mercurial插件未检测到更改
当我的管道轮询Mercurial repo的更改时,它不会检测到任何更改,并且不会触发新的构建 在插件文档之后,我设置了一个push hook来触发轮询,它工作正常,但无法检测到更改。我得到的只是 Mercurial轮询日志 开始于2018年5月19日晚上11:58:10 上的/var/lib/jenkins/workspace/test repo中没有轮询基线 完成了。花了0毫秒 不变 我的工作对象是: -詹金斯v2.107.3 -Mercurial插件v2.3 我刚刚创建了一个测试mercurial repo,其中包含一些随机内容的文件来测试设置,还有一个jenkins管道“轮询测试”,它检查repo并回显“hello world” 此外,“轮询SCM”选项已签出,并且没有任何计划 我修改回购协议的方式如下:Jenkins Mercurial插件未检测到更改,jenkins,jenkins-plugins,mercurial-hook,Jenkins,Jenkins Plugins,Mercurial Hook,当我的管道轮询Mercurial repo的更改时,它不会检测到任何更改,并且不会触发新的构建 在插件文档之后,我设置了一个push hook来触发轮询,它工作正常,但无法检测到更改。我得到的只是 Mercurial轮询日志 开始于2018年5月19日晚上11:58:10 上的/var/lib/jenkins/workspace/test repo中没有轮询基线 完成了。花了0毫秒 不变 我的工作对象是: -詹金斯v2.107.3 -Mercurial插件v2.3 我刚刚创建了一个测试mercu
$ echo "foo" > bar
$ hg add bar
$ hg commit -m "change"
$ hg push
然后使用
$ curl "https://jenkins-server/mercurial/notifyCommit?url=ssh://hg-user@hg-server/test-repo"
Scheduled polling of polling-test
轮询日志显示它已触发,但未发现任何更改
我做错了什么?如何检测更改?我通过在“全局工具”中添加Mercurial安装,将管道脚本更改为
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: 'jenkins', installation: 'Mercurial', source: 'ssh://hg-user@hg-server/test-repo'])
}
}
stage('Tests') {
steps {
echo "Hello World"
}
}
}
}
同时保持轮询选项处于选中状态,当然,第一次手动运行管道以获取引用变更集
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout([$class: 'MercurialSCM', credentialsId: 'jenkins', installation: 'Mercurial', source: 'ssh://hg-user@hg-server/test-repo'])
}
}
stage('Tests') {
steps {
echo "Hello World"
}
}
}
}