Issue Type: Bug Bug
Assignee: Jesse Glick
Components: mercurial
Created: 11/Mar/13 8:59 PM
Description:

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=""> 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

Project: Jenkins
Priority: Minor Minor
Reporter: Michael Tharp
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to