Ssh

詹金斯 CVS 配置

  • May 15, 2014

我正在從 Solaris 機器上的 Tomcat7 安裝中執行 Jenkins,並嘗試使用 SSH 連接到遠端機器上的 CVS 儲存庫。這個堆棧跟踪失敗了:

Building in workspace /home/tomcat/.jenkins/workspace/eLandings_XML_Compile
Using locally configured password for connection to :ext:monknomo@mycvsRepo.com:/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”時,它工作正常(在日期周圍加上引號,並在提示符下輸入我的密碼,無論如何)。

這個問題發生在我的 CVS 搬遷中。我們將儲存庫移至亞馬遜,並為每個開發人員創建了 linux 帳戶。使用預設密碼創建並設置為在第一次登錄時過期(passwd -e)。未更改密碼的開發人員收到了來自 Netbeans 的確切消息。

引用自:https://serverfault.com/questions/509631