jenkins-gitlab-merge-request-builder-plugin icon indicating copy to clipboard operation
jenkins-gitlab-merge-request-builder-plugin copied to clipboard

NPE in trigger on first merge request

Open oker1 opened this issue 11 years ago • 7 comments

org.jenkinsci.plugins.gitlab.GitlabBuildTrigger.run() failed for gitlab-test
java.lang.NullPointerException
    at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.latestCommitIsNotReached(GitlabMergeRequestWrapper.java:101)
    at org.jenkinsci.plugins.gitlab.GitlabMergeRequestWrapper.check(GitlabMergeRequestWrapper.java:86)
    at org.jenkinsci.plugins.gitlab.GitlabRepository.check(GitlabRepository.java:83)
    at org.jenkinsci.plugins.gitlab.GitlabRepository.check(GitlabRepository.java:65)
    at org.jenkinsci.plugins.gitlab.GitlabMergeRequestBuilder.run(GitlabMergeRequestBuilder.java:27)
    at org.jenkinsci.plugins.gitlab.GitlabBuildTrigger.run(GitlabBuildTrigger.java:101)
    at hudson.triggers.Trigger.checkTriggers(Trigger.java:255)
    at hudson.triggers.Trigger$Cron.doRun(Trigger.java:203)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)

oker1 avatar Apr 09 '14 13:04 oker1

As far as I see, it's valid only for jobs that were configured with version 1.1.2. Reconfiguring job might help to work around the issue.

kamazee avatar Apr 10 '14 05:04 kamazee

Created a brand new job and I still get this error.

oker1 avatar Apr 10 '14 06:04 oker1

Well, I'm not sure which action exactly let it disappear (I experienced the issue right after update), but try also to save plugin configuration from System Configuration (probably the cause is that newer version expects some configuration parameters that are missing in the older config). However, since it disappeared from my installation, I never really debugged it.

kamazee avatar Apr 10 '14 07:04 kamazee

It's working if I run it with mvn hpi:run, but on the real jenkins instance it's not.

oker1 avatar Apr 10 '14 07:04 oker1

I'm getting this error currently and I have no idea what the problem is. Brand new install of Jenkins with a new job.

Jenkins : 1.566 GIT client Plugin : 1.9.1 GIT Plugin : 2.2.1 Gitlab Hook Pluign : 1.0.0 Gitlab Merge Request builder : 1.2.1

v01d-cypher avatar Jun 05 '14 12:06 v01d-cypher

Hi,

Things seem to be working with release 1.2.2. Will update if there are any issues.

v01d-cypher avatar Jun 09 '14 13:06 v01d-cypher

@v01d-cypher yep it should have been fixed with the PR that was released in 1.2.2

timols avatar Jun 09 '14 16:06 timols