-
Bug
-
Resolution: Fixed
-
Major
-
CentOS 6.5 x86_64
java version "1.7.0_55"
OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
* RPMs:
** jenkins-1.554.2-1.1.noarch
** git-1.7.1-3.el6_4.1.x86_64
** java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64
Jenkins GIT related plugins:
* Git Parameter Plugin - v0.3.2
* Git Client Plugin - v1.9.1
* GIT plugin 2.2.1
* GIT Client Plugin 1.9.1
CentOS 6.5 x86_64 java version "1.7.0_55" OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) * RPMs: ** jenkins-1.554.2-1.1.noarch ** git-1.7.1-3.el6_4.1.x86_64 ** java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64 Jenkins GIT related plugins: * Git Parameter Plugin - v0.3.2 * Git Client Plugin - v1.9.1 * GIT plugin 2.2.1 * GIT Client Plugin 1.9.1
The "git tag" list is blank, even on the second on subsequent runs. We found a Null pointer exception in the jenkins.log:
2014 10:09:40 AM hudson.ExpressionFactory2$JexlExpression evaluate WARNING: Caught exception evaluating: it.revisionMap in /job/SF-Dev/job/Deploy-Auction-GitTag/build. Reason: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ((SNIP)) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NullPointerException at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.generateContents(GitParameterDefinition.java:260) at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.getRevisionMap(GitParameterDefinition.java:386) ... 167 more
After reviewing the code (as a non developer of course), the problem appears to be in the getParentProject() method:
https://github.com/jenkinsci/git-parameter-plugin/blob/git-parameter-0.3.2/src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java#L184-L213
context is set to null, then there is some sort of elaborate sequence that should set context to the project during the loop, but apparently that is not happening.