Jenkins gerrit触发器无法找到任何修改版本

时间:2016-05-19 13:20:28

标签: git jenkins gerrit-trigger

我坚持使用Jenkins的Gerrit触发器插件的问题 早些时候一切都还好,但突然建立破坏,配置没有改变。

这是我的日志。

Building in workspace /var/lib/jenkins/jobs/Jobname/workspace
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url ssh://username@testserver.com:29418/test # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
 > git submodule foreach --recursive git reset --hard # timeout=10
ERROR Failed to submit result to Gerritjava.net.SocketException: Connection reset > git submodule foreach --recursive git clean -fdx # timeout=10
Fetching upstream changes from ssh://username@testserver.com:29418/test
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git -c core.askpass=true fetch --tags --progress ssh://username@testserver.com:29418/test refs/changes/*:refs/changes/*
 > git rev-parse origin/$GERRIT_REFSPEC^{commit} # timeout=10
 > git rev-parse $GERRIT_REFSPEC^{commit} # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

正如我可以看到由于某些原因Gerrit构建的参数是使用Gerrit-trigger插件生成的

截图: enter image description here

有没有人知道如何解决它?

1 个答案:

答案 0 :(得分:0)

这是由SECURITY 170引起的,并在Gerrit插件的v2.21.0中得到修复。