-
Bug
-
Resolution: Duplicate
-
Critical
-
OS: Fedora
Jenkins: 1.625.3
Gerrit-trigger: 2.21.0
I'm getting the following error:
Building in workspace /var/lib/jenkins/jobs/delegate/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://Jenkins@localhost:29418/delegate # timeout=10 Fetching upstream changes from ssh://Jenkins@localhost:29418/delegate > git --version # timeout=10 using GIT_SSH to set credentials > git -c core.askpass=true fetch --tags --progress ssh://Jenkins@localhost:29418/delegate refs/changes/*:refs/changes/* > git rev-parse FETCH_HEAD^{commit} # timeout=10 Checking out Revision e31eedc809f88c69ea6b5193e8a90e052421ec2d () > git config core.sparsecheckout # timeout=10 > git checkout -f e31eedc809f88c69ea6b5193e8a90e052421ec2d FATAL: null java.lang.NullPointerException at java.util.TreeMap.compare(TreeMap.java:1290) at java.util.TreeMap.put(TreeMap.java:538) at hudson.util.CopyOnWriteMap.put(CopyOnWriteMap.java:104) at hudson.plugins.git.GitTagAction.<init>(GitTagAction.java:44) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1143) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Finished: FAILURE
If i look inside the jenkins workspace everything looks good. If i run all the git commands manually it also checkouts the correct commit but everything crashes after that.
Config:
Source code management: Git
Repositories: ssh://Jenkins@localhost:29418/delegate
Credentials: Jenkins
Name: empty
Refspec: refs/changes/:refs/changes/
Branches to build: **
Strategy for choosing what to build: Gerrit Trigger
Build triggers: Gerrit event
Choose a Server: gerrit
Gerrit project:
type = plain, Pattern = delegate
branches
type = Path, Pattern = **
Interesting:
If i change the refspec to something else or leave it bland the build will success but the latest changes won't be checked out from gerrit. So is there a solution to this problem or am I doing something wrong?
- is duplicated by
-
JENKINS-30844 NPE on Gerrit job
- Closed