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

NullPointerException if Workspace does not exist

      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.

          [JENKINS-45020] NullPointerException if Workspace does not exist

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

          Marcel Skalicky added a comment - We've got NPE on this when node where lastBuild was run was renamed.

          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)

          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)

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

              Created:
              Updated:
              Resolved: