jenkinsci / ghprb-plugin

github pull requests builder plugin for Jenkins
https://plugins.jenkins.io/ghprb/
MIT License
506 stars 612 forks source link

GHPRB plugin in Jenkins unable to trigger build #762

Open Pr60 opened 5 years ago

Pr60 commented 5 years ago

I'm using GitHub Pull request builder plugin to trigger my PRs. It was working fine for a while and it suddenly stopped working. I checked the Jenkins logs and I found this error:

Nov 20, 2019 3:29:00 PM WARNING hudson.triggers.Trigger checkTriggers
org.jenkinsci.plugins.ghprb.GhprbTrigger.run() failed for hudson.model.FreeStyleProject@7d1c3713[test-job]
java.lang.StackOverflowError
        at java.base/java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1042)
    at java.base/java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1041)
    at java.base/java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1042)
    at java.base/java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1041)
    at java.base/java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1042)
    at java.base/java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1041)
    at java.base/java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1042)
    at java.base/java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1041)
    at java.base/java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1042)

JDK version: 11.0.2 Platform: Linux 4.14.123-111.109.amzn2.x86_64 GHPBR version: 1.42.0

I did a few things like re-saving the job again, checking my global credentials etc but everything looked fine compare to what people have discussed in the forum but nothing worked. I re-installed the plugin and it started working. Next day, again the plugin stopped triggering the builds with same error. I'm not sure why this is happening? Does anyone has a fix for this? is there any good alternative of this plugin?