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

Jenkinsfile build fail - Null pointer exception in PipelineTriggersJobProperty

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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. 

        Attachments

          Activity

          bigboban Petr Leitner created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Component/s workflow-job-plugin [ 21716 ]
          Component/s plugins.jenkins.io [ 24636 ]
          Key INFRA-2721 JENKINS-63577
          Workflow classic default workflow [ 245802 ] JNJira + In-Review [ 245914 ]
          Project Infrastructure [ 10301 ] Jenkins [ 10172 ]
          bigboban Petr Leitner made changes -
          Priority Minor [ 4 ] Major [ 3 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bigboban Petr Leitner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: