Issue Type: Bug Bug
Assignee: Unassigned
Components: gitlab-plugin
Created: 06/Jan/15 6:51 AM
Description:

When viewing a merge request on Gitlab, Gitlab makes a request to Jenkins to get the status of the commit, however this raises a NullPointerException.

The request made by Gitlab looks like this:

https://JENKINS_URL/project/PROJECT_NAME/commits/COMMIT_SHA/status.json?token=TOKEN

And the NullPointerException traceback is:

Caused by: java.lang.NullPointerException
	at com.dabsquared.gitlabjenkins.GitLabWebHook.getBuildBySHA1(GitLabWebHook.java:440)
	at com.dabsquared.gitlabjenkins.GitLabWebHook.generateStatusJSON(GitLabWebHook.java:183)
	at com.dabsquared.gitlabjenkins.GitLabWebHook.getDynamic(GitLabWebHook.java:137)
	at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
	at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:389)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
Environment: Jenkins version: 1.594
Gitlab-plugin version: 1.1.7
Gitlab version: 7.6.2
Project: Jenkins
Priority: Major Major
Reporter: Villiers Strauss
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to