NullPointerException thrown when trying to perform a Maven Release

Issue

When you press “Schedule Release Build”, this exception is thrown:

javax.servlet.ServletException: java.lang.NullPointerException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:795)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:391)

Caused by: java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseAction.getString(M2ReleaseAction.java:318) at org.jvnet.hudson.plugins.m2release.M2ReleaseAction.doSubmit(M2ReleaseAction.java:223)

Environment

  • CloudBees Jenkins Enterprise
  • M2 Release plugin <= 0.14

Resolution

You should upgrade to version 0.15 or upper of M2 release plugin.

If version 0.15 is not yet available, please use this snapshot build to get a fix for this issue.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.