-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: git-plugin
-
Environment:Linux x86_64 / Debian 6.0.5
Sun java 1.6.0_26
Jenkins 1.473
Git plugin 1.1.24
-
Similar Issues:
With the latest version of the git plugins, my jobs which push tags to the origin repository have started to fail
Pushing HEAD to branch post-integration of origin repository ERROR: Failed to push tag 0.0.24 to origin java.lang.NullPointerException at hudson.plugins.git.GitPublisher$3.invoke(GitPublisher.java:290) at hudson.plugins.git.GitPublisher$3.invoke(GitPublisher.java:268) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Build step 'Git Publisher' changed build result to FAILURE
I rolled back to 1.1.23 and the same jobs started succeeding again. My jobs are configured to create and push a tag (determined by environment variable) in the git publisher step.
This is likely caused by this commit:
https://github.com/jenkinsci/git-plugin/commit/6aaf169902ce55924fdabf142fc443ef4c80c1ae
If the tagMessage is NULL then it will most certainly throw a NullPointerException.