使用Jenkins和Jenkins Job设置Mercurial存储库?

时间:2019-07-04 15:16:57

标签: jenkins mercurial mercurial-hook

我需要将Jenkins设置为使用托管在BitBucket上的Mercurial存储库,但在作业尝试轮询存储库时遇到问题。

示例网址:

  

hg克隆https://joeblogs@bitbucket.org/joeblogs/test2

我还试图在Jenkins的“全局工具配置”内部进行对齐,如下所示: enter image description here

我还尝试按照以下步骤调整Jenkins工作: enter image description here

当作业轮询SCM时,我会看到以下消息:

Started on Jul 4, 2019 3:13:00 PM
Polling SCM changes on master
FATAL: SCM revision state is not a Mercurial one
java.io.IOException: SCM revision state is not a Mercurial one
    at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:410)
    at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:400)
    at hudson.scm.SCM.poll(SCM.java:417)
    at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1412)
    at hudson.model.AbstractProject._poll(AbstractProject.java:1382)
    at hudson.model.AbstractProject.poll(AbstractProject.java:1293)
    at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:603)
    at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:649)
    at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Done. Took 2 ms
No changes

请注意,我的Jenkins实例正在AWS云中运行并使用Ubuntu。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

该错误是由于版本控制上没有名为default的分支所致。如果要使用master分支,请将该位置保留为空白。