我正在 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 21 May 2013 09:12:45 -0800 -d jenkins_project xml”時,它工作正常(在日期周圍加上引號,並在提示下輸入我的密碼) ,無論如何)。
答案1
我在 CVS 搬遷時遇到了這個問題。我們將儲存庫移至亞馬遜,並為每個開發人員建立了 Linux 帳戶。建立時使用預設密碼,並設定為在首次登入時過期 (passwd -e)。未更改密碼的開發人員收到了來自 Netbeans 的確切消息。