-
Bug
-
Resolution: Fixed
-
Major
-
None
-
CentOS
Hello,
An RPM update of Hudson yesterday (to 1.375) prevents the gerrit trigger plugin from publishing the results of a build back to Gerrit. We downgraded hudson back to 1.373, and the problem went away. When the build starts, the "Starting build" message does make it to Gerrit, but though the build completes, Gerrit is not notified of the completion, and manual verification of the patch is required.
Attached is what looks like the relevant hudson log portion. Please let me know if you need anything else.
Thanks for a great plugin!
Cheers,
Bill Shupp
- is related to
-
JENKINS-7435 Gerrit stops sending verifications with the Hudson 1.375 release (1.373 works)
-
- Closed
-
It seems this error is due to the buildsByBranchName Hashmap in the hudson.plugins.git.util.BuildData action gets in a state where a key is null:
println(Hudson.getInstance().getItem("EXPERIMENTAL_Gerrit_Trigger_2").getBuildByNumber(13).getAction(hudson.plugins.git.util.BuildData).buildsByBranchName);
null:Build #13 of Revision 0f566fdae8a0a3fb06780a976ac41bc97b138383 (null)
Hudson.getInstance().getItem("EXPERIMENTAL_Gerrit_Trigger_2").getBuildByNumber(13).save();
java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:167)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
If I clear buildsByBranchName, everything is OK:
Hudson.getInstance().getItem("EXPERIMENTAL_Gerrit_Trigger_2").getBuildByNumber(13).getAction(hudson.plugins.git.util.BuildData).buildsByBranchName.clear();
Hudson.getInstance().getItem("EXPERIMENTAL_Gerrit_Trigger_2").getBuildByNumber(13).save();
<SUCCESS>
The error in http://issues.jenkins-ci.org/browse/JENKINS-7330 seems also to depend on changes in the serialization logic in 1.374, making Hudson suddenly not accepting a null-string. So I guess they are indeed connected. Maybe we can achieve a similar patch for the GIT-plugin?