jenkins-gitlab-merge-request-builder-plugin
jenkins-gitlab-merge-request-builder-plugin copied to clipboard
NPE in trigger on first merge request
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)
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.
Created a brand new job and I still get this error.
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.
It's working if I run it with mvn hpi:run, but on the real jenkins instance it's not.
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
Hi,
Things seem to be working with release 1.2.2. Will update if there are any issues.
@v01d-cypher yep it should have been fixed with the PR that was released in 1.2.2