Пытаюсь сделать автоверификацию на несколько проектов геррита. Возможно ли сделать это одним проектом дженкинса?
При попытке добавить еще 1 репозиторий в multiplescm-plugin сборка падает из-за того что не находит коммит.
Triggered by Gerrit: http://github.example.com:8082/79
Building in workspace /var/lib/jenkins/jobs/Precommit verifier/workspace
> /usr/bin/git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> /usr/bin/git config remote.project1.url ssh://verifier@github.example.com:29418/project1.git
Fetching upstream changes from ssh://verifier@github.example.com:29418/project1.git
> /usr/bin/git --version
using GIT_SSH to set credentials verifier
> /usr/bin/git fetch --tags --progress ssh://verifier@github.example.com:29418/project1.git refs/changes/79/79/1
> /usr/bin/git rev-parse 441380d2893e3bcd9289467ffc9dadfcd36cb947^{commit}
Checking out Revision 441380d2893e3bcd9289467ffc9dadfcd36cb947 (master)
> /usr/bin/git config core.sparsecheckout
> /usr/bin/git checkout -f 441380d2893e3bcd9289467ffc9dadfcd36cb947
> /usr/bin/git rev-parse FETCH_HEAD^{commit}
> /usr/bin/git rev-list 381cabeac3ef8a74d4e3a7867a94d91e93d32130
> /usr/bin/git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> /usr/bin/git config remote.project2.url ssh://verifier@github.example.com:29418/project2.git
Fetching upstream changes from ssh://verifier@github.example.com:29418/project2.git
> /usr/bin/git --version
using GIT_SSH to set credentials verifier
> /usr/bin/git fetch --tags --progress ssh://verifier@github.example.com:29418/project2.git refs/changes/79/79/1
FATAL: Failed to fetch from ssh://verifier@github.example.com:29418/project2.git
hudson.plugins.git.GitException: Failed to fetch from ssh://verifier@github.example.com:29418/project2.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:118)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
at hudson.model.Run.execute(Run.java:1732)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress ssh://verifier@github.example.com:29418/project2.git refs/changes/79/79/1" returned status code 128:
stdout:
stderr: fatal: Couldn't find remote ref refs/changes/79/79/1
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1325)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1186)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:257)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:620)
... 11 more