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

Jenkins can't monitor external job if master has no executor set

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Run#run(Runner job) uses Charset charset = Computer.currentComputer().getDefaultCharset() to get the local encoding to write the build log. When Jenkins master is configured with 0 executors (delegating 100% work to slaves), currentComputer() returns null, so a NullPointerException and run is recorded as FAILED.

      hudson.model.Run handleFatalBuildProblem
      SEVERE: #13 failed to build and we don't even have a listener
      java.lang.NullPointerException

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          core/src/main/java/hudson/model/Run.java
          http://jenkins-ci.org/commit/jenkins/609392414f1060fb67d69db026b6f40478784345
          Log:
          [FIX JENKINS-13824] prevent NullPointerException

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/609392414f1060fb67d69db026b6f40478784345 Log: [FIX JENKINS-13824] prevent NullPointerException
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1718
          [FIX JENKINS-13824] prevent NullPointerException (Revision 609392414f1060fb67d69db026b6f40478784345)

          Result = UNSTABLE
          Nicolas De Loof : 609392414f1060fb67d69db026b6f40478784345
          Files :

          • core/src/main/java/hudson/model/Run.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1718 [FIX JENKINS-13824] prevent NullPointerException (Revision 609392414f1060fb67d69db026b6f40478784345) Result = UNSTABLE Nicolas De Loof : 609392414f1060fb67d69db026b6f40478784345 Files : core/src/main/java/hudson/model/Run.java
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #30
          [FIX JENKINS-13824] prevent NullPointerException (Revision 609392414f1060fb67d69db026b6f40478784345)

          Result = SUCCESS
          Nicolas De Loof : 609392414f1060fb67d69db026b6f40478784345
          Files :

          • core/src/main/java/hudson/model/Run.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_ui-changes_branch #30 [FIX JENKINS-13824] prevent NullPointerException (Revision 609392414f1060fb67d69db026b6f40478784345) Result = SUCCESS Nicolas De Loof : 609392414f1060fb67d69db026b6f40478784345 Files : core/src/main/java/hudson/model/Run.java

            People

            Assignee:
            ndeloof Nicolas De Loof
            Reporter:
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: