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

NullPointerException if Workspace does not exist

    Details

    • Similar Issues:

      Description

      Line 178 in MultiJobBuilder.java can trigger an NPE because lastBuild.getWorkspace() can return null (namely if the workspace has been deleted meanwhile). All my jobs delete their workspace at the end of the build...

      Additionally, the check is bogus anyway. Not all SCMs require a workspace to exist to detect if there are changes. If they do, then subjob.poll() should return true anyway.

        Attachments

          Activity

          Hide
          marcelskalicky Marcel Skalicky added a comment -

          We've got NPE on this when node where lastBuild was run was renamed.

          Show
          marcelskalicky Marcel Skalicky added a comment - We've got NPE on this when node where lastBuild was run was renamed.
          Hide
          yorammi Yoram Michaeli added a comment -

          Closing issue as part of tikal-multijob-plugin issues cleanup.
          If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

          Show
          yorammi Yoram Michaeli added a comment - Closing issue as part of tikal-multijob-plugin issues cleanup. If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

            People

            • Assignee:
              Unassigned
              Reporter:
              rk R K
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: