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

NPE in CleanupJobsOnDelete

    XMLWordPrintable

Details

    Description

      As noted here there is a NPE in the CleanupJobsOnDelete listener.

      The condition to apply the listener must be improved as the milestone state storage file is not granted to exists.

      Note that the NPE should not affect anything, it is a warning when trying to apply the listener when there is no status file to read so there is no jobs to clean in the file.

      Attachments

        Issue Links

          Activity

            abayer Andrew Bayer added a comment -

            Initial PR up at https://github.com/jenkinsci/pipeline-milestone-step-plugin/pull/9 - still needs tests, though.

            abayer Andrew Bayer added a comment - Initial PR up at https://github.com/jenkinsci/pipeline-milestone-step-plugin/pull/9 - still needs tests, though.

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            src/main/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneStepExecution.java
            http://jenkins-ci.org/commit/pipeline-milestone-step-plugin/7ecb946d1c54ed15a8f4bb9848cfaa9da7c6086f
            Log:
            [FIXED JENKINS-41311] Fix NPE in CleanupJobsOnDelete.onDeleted

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneStepExecution.java http://jenkins-ci.org/commit/pipeline-milestone-step-plugin/7ecb946d1c54ed15a8f4bb9848cfaa9da7c6086f Log: [FIXED JENKINS-41311] Fix NPE in CleanupJobsOnDelete.onDeleted

            People

              abayer Andrew Bayer
              amuniz Antonio Muñiz
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: