1

当尝试使用 CVS 中的最新版本更新工作区时,Jenkins 构建作业时常失败,并出现以下错误:

[EnvInject] - Loading node environment variables.
Building on master in workspace
Using locally configured password for connection to :pserver:myuser@server:/export/home/cvsroot
cvs update -d -P -r HEAD -D 08 Jan 2013 06:29:03 -0500 prjname
ERROR: CVS Command aborted: Aborted during request processing
org.netbeans.lib.cvsclient.command.CommandAbortedException: Aborted during request processing
        at org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:673)
        at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:598)
        at org.netbeans.lib.cvsclient.command.update.UpdateCommand.execute(UpdateCommand.java:347)
        at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:710)
        at hudson.scm.AbstractCvs$1.invoke(AbstractCvs.java:243)
        at hudson.scm.AbstractCvs$1.invoke(AbstractCvs.java:223)
        at hudson.FilePath.act(FilePath.java:842)
        at hudson.FilePath.act(FilePath.java:824)
        at hudson.scm.AbstractCvs.perform(AbstractCvs.java:223)
        at hudson.scm.AbstractCvs.checkout(AbstractCvs.java:140)
        at hudson.scm.CVSSCM.checkout(CVSSCM.java:318)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
        at hudson.model.Run.execute(Run.java:1502)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:236)
ERROR: Cvs task failed

如果我重新启动构建,则更新会正常进行。

  • 詹金斯版本:1.478
  • Jenkins-CVS 插件版本:2.7
4

1 回答 1

0

您看到的 CommandAbortedException 被抛出,因为代码收到了 InterruptedIOException。

这表示线程在尝试与您的 CVS 服务器通信时抛出了一个 InterruptedException,因此要么有人在你的工作上点击了取消按钮,要么你有一个进程试图结束 Java 线程。

于 2013-01-20T16:39:05.890 回答