Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63577

Jenkinsfile build fail - Null pointer exception in PipelineTriggersJobProperty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • workflow-job-plugin
    • None

      I have Jenkinsfile build and workflow-job plugin installed. Jenkins and all plugins on latest version. When my build first fail (i think reason is not important, some error in Jenkinsfile script) every next build fail on NPE.

      I think failed build broke some trigger - set it to null, i don't know why, but it is real. Because every next build try to stop all triggers, every next build fail on NPE. So this job is broken forever.

      I think broken code is on PipelineTriggersJobProperty.java:106. Fix is easy - add 

      if (trigger !=null) {

      condition.

      And .. voilà - problem is gone. 

            Unassigned Unassigned
            bigboban Petr Leitner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: