我正在尝试用Go和Git建立一个新的管道。
当我试图通过Go服务器的‘添加管道’屏幕连接到Git时,它挂起了,如果我试图使用git运行一个作业,我会得到这个错误:
2011-01-20 10:02:57,421 ERROR [MessageListener for MaterialUpdateListener] MaterialDatabaseUpdater:66 - Modification check failed for material: git@codaset.com:xxx/xxxxxx.git
java.lang.RuntimeException: Failed to run git clone command
at com.thoughtworks.cruise.util.ExceptionUtils.bomb(ExceptionUtils.java:24)
at com.thoughtworks.cruise.domain.materials.git.GitMaterial.getGit(GitMaterial.java:163)
at com.thoughtworks.cruise.domain.materials.git.GitMaterial.latestModification(GitMaterial.java:64)
at com.thoughtworks.cruise.server.materials.LegacyMaterialChecker.findLatestModification(LegacyMaterialChecker.java:19)
at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.insertLatestOrNewModifications(MaterialDatabaseUpdater.java:106)
at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.addNewMaterialWithModifications(MaterialDatabaseUpdater.java:123)
at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.initializeMaterialWithLatestRevision(MaterialDatabaseUpdater.java:76)
at com.thoughtworks.cruise.server.materials.MaterialDatabaseUpdater.updateMaterial(MaterialDatabaseUpdater.java:57)
at com.thoughtworks.cruise.server.materials.MaterialUpdateListener$1.doInTransaction(MaterialUpdateListener.java:33)
at com.thoughtworks.cruise.server.transaction.TransactionCallback.doWithExceptionHandling(TransactionCallback.java:8)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate$1.doInTransaction(TransactionTemplate.java:20)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at com.thoughtworks.cruise.server.transaction.TransactionTemplate.executeWithExceptionHandling(TransactionTemplate.java:18)
at com.thoughtworks.cruise.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:31)
at com.thoughtworks.cruise.server.materials.MaterialUpdateListener.onMessage(MaterialUpdateListener.java:14)
at com.thoughtworks.cruise.server.messaging.activemq.JMSMessageListenerAdapter.runImpl(JMSMessageListenerAdapter.java:46)
at com.thoughtworks.cruise.server.messaging.activemq.JMSMessageListenerAdapter.run(JMSMessageListenerAdapter.java:31)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Exception: Failed to run git clone command
at com.thoughtworks.cruise.util.ExceptionUtils.bombIfFailedToRunCommandLine(ExceptionUtils.java:34)
at com.thoughtworks.cruise.domain.materials.git.GitMaterial.git(GitMaterial.java:182)
at com.thoughtworks.cruise.domain.materials.git.GitMaterial.getGit(GitMaterial.java:161)
... 16 more我的管道配置:
<pipeline name="TEST" labeltemplate="0.0.${COUNT}">
<materials>
<git url="git@codaset.com:xxx/xxxxxx.git" />
</materials>
<stage name="Complete">
<approval type="manual" />
<jobs>
<job name="Deploy">
<tasks>
<exec command="echo" args="This should deploy" />
</tasks>
</job>
</jobs>
</stage>
</pipeline>我可以从CMD运行git clone,并且已经确认git在我的路径中。
我在Windows (32位)上运行,在Chrome和Firefox上也有相同的行为。谷歌什么也没找到!
有没有人见过这种行为?
发布于 2014-10-25 13:18:15
我也遇到了同样的问题,然后我尝试使用url:
http://:@localhost:8181/scm/git/mygit.repo
这是可行的。此外,如果您将材料视为用户视角,您会注意到密码为*。
发布于 2012-05-19 05:50:26
看起来您的cruise-config.xml配置对于Git材料并不是很合适。
尝试使用HTTP作为协议,而不是使用git@xxxx/yyy.git语法。
<git url="http://codaset.com/area/project.git" />我还没有看到git@xxxx/yyy.git语法在我们的~700 GO管道中使用过。
https://stackoverflow.com/questions/4746167
复制相似问题