我正在 Solaris 机器上的 Tomcat7 安装中运行 Jenkins,并尝试使用 SSH 连接到远程计算机上的 CVS 存储库。我收到以下堆栈跟踪失败:
Building in workspace /home/tomcat/.jenkins/workspace/eLandings_XML_Compile
Using locally configured password for connection to :ext:[email protected]:/opt/project/cvsroot
cvs checkout -D 21 May 2013 09:12:45 -0800 -d jenkins_project xml
ERROR: CVS Command failed: Error executing cvs server on server.\\nSet CVS_SERVER environment variable properly.
java.io.IOException: Error executing cvs server on server.\\nSet CVS_SERVER environment variable properly.
at org.netbeans.lib.cvsclient.connection.SSHConnection$SshChannelInputStream.checkChannelState(SSHConnection.java:294)
at org.netbeans.lib.cvsclient.connection.SSHConnection$SshChannelInputStream.available(SSHConnection.java:288)
at org.netbeans.lib.cvsclient.util.LoggedDataInputStream.read(LoggedDataInputStream.java:227)
at org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:626)
at org.netbeans.lib.cvsclient.Client.processRequests(Client.java:598)
org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.execute(CheckoutCommand.java:348)
at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:710)
at hudson.scm.AbstractCvs$1.invoke(AbstractCvs.java:246)
at hudson.scm.AbstractCvs$1.invoke(AbstractCvs.java:226)
at hudson.FilePath.act(FilePath.java:904)
at hudson.FilePath.act(FilePath.java:877)
at hudson.scm.AbstractCvs.perform(AbstractCvs.java:226)
at hudson.scm.AbstractCvs.checkout(AbstractCvs.java:192)
at hudson.scm.CVSSCM.checkout(CVSSCM.java:323)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1369)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:241)
ERROR: Cvs task failed
当我从我的 tomcat 用户的命令行运行命令“cvs checkout -D 2013 年 5 月 21 日 09:12:45 -0800 -d jenkins_project xml”时,它工作正常(无论如何,在日期周围加上引号,并在提示符下输入我的密码之后)。
答案1
我在 CVS 迁移过程中遇到了这个问题。我们将存储库移至 Amazon,并为每个开发人员创建了 Linux 帐户。创建时使用默认密码,并设置为在第一次登录时过期 (passwd -e)。没有更改密码的开发人员收到了来自 Netbeans 的此消息。