我被 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-trigger 插件生成的 Gerrit 构建参数是空的
有人知道我该如何解决吗?