-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: mercurial-plugin
Kind of an odd case, but when the hg repo path is something like /local/filesystem/path then attempting to trigger a build using http://localhost/mercurial/notifyCommit?url=/local/filesystem/path fails:
Caused by: java.lang.NullPointerException
at hudson.plugins.mercurial.MercurialStatus.getPort(MercurialStatus.java:56)
at hudson.plugins.mercurial.MercurialStatus.looselyMatches(MercurialStatus.java:71)
at hudson.plugins.mercurial.MercurialStatus.handleNotifyCommit(MercurialStatus.java:106)
at hudson.plugins.mercurial.MercurialStatus.doNotifyCommit(MercurialStatus.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
I can work around it by changing all of the jobs to file:///local/filesystem/path but this is a regression from previous versions. Almost certainly introduced in https://github.com/jenkinsci/mercurial-plugin/pull/33