[JIRA] [gerrit-trigger-plugin] (JENKINS-30844) NPE on Gerrit job

8 views
Skip to first unread message

cezariusz.marek@gmail.com (JIRA)

unread,
Oct 8, 2015, 9:28:02 AM10/8/15
to jenkinsc...@googlegroups.com
Cezariusz Marek created an issue
 
Jenkins / Bug JENKINS-30844
NPE on Gerrit job
Issue Type: Bug Bug
Assignee: rsandell
Components: gerrit-trigger-plugin, git-plugin
Created: 08/Oct/15 1:27 PM
Environment: Jenkins 1.631
Labels: gerrit-trigger git
Priority: Major Major
Reporter: Cezariusz Marek

I have configured a job to verify Gerrit changes, but it fails with NPE. Here's the log:

Triggered by Gerrit: http://jerry:3881/104
Building in workspace /var/lib/tomcat/.jenkins/workspace/gerrit-sdm-backend
Cloning the remote Git repository
Cloning repository http://jerry:3881/sdm/sdm-backend
 > git init /var/lib/tomcat/.jenkins/workspace/gerrit-sdm-backend # timeout=10
Fetching upstream changes from http://jerry:3881/sdm/sdm-backend
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress http://jerry:3881/sdm/sdm-backend +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url http://jerry:3881/sdm/sdm-backend # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url http://jerry:3881/sdm/sdm-backend # timeout=10
Fetching upstream changes from http://jerry:3881/sdm/sdm-backend
 > git -c core.askpass=true fetch --tags --progress http://jerry:3881/sdm/sdm-backend refs/changes/04/104/3
 > git rev-parse 14428cdafcdc87c4f6b3fdd87ad1344d3cd8be33^{commit} # timeout=10
Checking out Revision 14428cdafcdc87c4f6b3fdd87ad1344d3cd8be33 ()
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 14428cdafcdc87c4f6b3fdd87ad1344d3cd8be33
FATAL: null
java.lang.NullPointerException
	at java.util.TreeMap.compare(TreeMap.java:1188)
	at java.util.TreeMap.put(TreeMap.java:531)
	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:1066)
	at hudson.scm.SCM.checkout(SCM.java:485)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
	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.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:408)
Finished: FAILURE

git version 2.5.3

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 9, 2015, 8:15:02 AM10/9/15
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-30844
 
Re: NPE on Gerrit job

Can you describe the job configuration, the steps necessary to duplicate the problem, and the version numbers of the various plugins involved in seeing the problem?

For example, I assume you must have added the Additional Behaviour to tag every build. Are there other behaviors you added which might be interacting with this? Does the failure occur even without involving Gerrit (since the stack trace looks like it is purely a git plugin stack trace, not involving anything with Gerrit).

cezariusz.marek@gmail.com (JIRA)

unread,
Oct 9, 2015, 8:23:01 AM10/9/15
to jenkinsc...@googlegroups.com

Gerrit Trigger - 2.16.0
GIT client plugin - 1.19.0
GIT plugin - 2.4.0
Additional Behaviours - Choosing strategy: Gerrit Trigger

After further investigation it seems that the problem is related to the Branch Specifier. If "Branches to build" is blank it is replaced with "**" and the error occurs. Replacing it with $GERRIT_BRANCH fixed the configuration.

scoheb@gmail.com (JIRA)

unread,
Nov 27, 2015, 1:33:01 PM11/27/15
to jenkinsc...@googlegroups.com
Scott Hebert updated an issue
Change By: Scott Hebert
Labels: gerrit-trigger  git

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 15, 2019, 3:47:03 PM11/15/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: rsandell
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages