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

Job status page shows "Build has been executing for null on master"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins v 1.357
      Windows 7
      Windows service
    • Similar Issues:

      Description

      I was watching the build page, and saw that the following text to the upper right "Build has been executing for null on master"

      I was not expected "null" in the message

        Attachments

          Issue Links

            Activity

            Hide
            guptapranav01 Pranav Gupta added a comment -

            I ran the following script to run the jenkins jobs

            import hudson.console.HyperlinkNote
            import java.util.concurrent.CancellationException
            import com.tikal.jenkins.plugins.multijob.MultiJobProject
            import hudson.model.*
            import hudson.AbortException

            job = hudson.model.Hudson.instance.items.each { job ->
            try {
            def running = job.lastBuild.building
            def disabled = job.isDisabled()
            def numbuilds = job.builds.size()
            lastbuild = job.builds[0]
            if (numbuilds == 0)

            { println job.name + ' has 0 previous build' }

            else if (running) {
            println "${job.name} is already running. Not launching"
            } else if (disabled) {
            println "${job.name} is disabled...Cannot be kicked off"
            } else {
            def buildParameter = job.builds[0].getAction(ParametersAction.class)
            if (buildParameter == null)

            { job.newBuild() println job.name + ' starts running...' }

            }
            } catch(Exception e)

            { println job.name + ' -> ' + e.getMessage() }

            }

            The jobs shows blinking green button but they are not running.
            Message : Build has been executing for null on master

            Show
            guptapranav01 Pranav Gupta added a comment - I ran the following script to run the jenkins jobs import hudson.console.HyperlinkNote import java.util.concurrent.CancellationException import com.tikal.jenkins.plugins.multijob.MultiJobProject import hudson.model.* import hudson.AbortException job = hudson.model.Hudson.instance.items.each { job -> try { def running = job.lastBuild.building def disabled = job.isDisabled() def numbuilds = job.builds.size() lastbuild = job.builds [0] if (numbuilds == 0) { println job.name + ' has 0 previous build' } else if (running) { println "${job.name} is already running. Not launching" } else if (disabled) { println "${job.name} is disabled...Cannot be kicked off" } else { def buildParameter = job.builds [0] .getAction(ParametersAction.class) if (buildParameter == null) { job.newBuild() println job.name + ' starts running...' } } } catch(Exception e) { println job.name + ' -> ' + e.getMessage() } } The jobs shows blinking green button but they are not running. Message : Build has been executing for null on master
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3651
            [FIXED JENKINS-20307] Consider OneOffExecutors in Run.getExecutor() (Revision 9379d1fefc49fbe8cf11bb96290a9924a6eb38cc)

            Result = SUCCESS
            daniel-beck : 9379d1fefc49fbe8cf11bb96290a9924a6eb38cc
            Files :

            • core/src/main/java/hudson/model/Run.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3651 [FIXED JENKINS-20307] Consider OneOffExecutors in Run.getExecutor() (Revision 9379d1fefc49fbe8cf11bb96290a9924a6eb38cc) Result = SUCCESS daniel-beck : 9379d1fefc49fbe8cf11bb96290a9924a6eb38cc Files : core/src/main/java/hudson/model/Run.java
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/java/hudson/model/Run.java
            http://jenkins-ci.org/commit/jenkins/fe3b33a16e850f1e5a5fd80b06b3484eb6f4bf98
            Log:
            Merge pull request #1348 from daniel-beck/JENKINS-20307

            [FIXED JENKINS-20307] Consider OneOffExecutors in Run.getExecutor()

            Compare: https://github.com/jenkinsci/jenkins/compare/174786b9f758...fe3b33a16e85

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/fe3b33a16e850f1e5a5fd80b06b3484eb6f4bf98 Log: Merge pull request #1348 from daniel-beck/ JENKINS-20307 [FIXED JENKINS-20307] Consider OneOffExecutors in Run.getExecutor() Compare: https://github.com/jenkinsci/jenkins/compare/174786b9f758...fe3b33a16e85
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/java/hudson/model/Run.java
            http://jenkins-ci.org/commit/jenkins/9379d1fefc49fbe8cf11bb96290a9924a6eb38cc
            Log:
            [FIXED JENKINS-20307] Consider OneOffExecutors in Run.getExecutor()

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/9379d1fefc49fbe8cf11bb96290a9924a6eb38cc Log: [FIXED JENKINS-20307] Consider OneOffExecutors in Run.getExecutor()
            Hide
            danielbeck Daniel Beck added a comment -

            See above linked PR 1348 for an explanation and proposed solution.

            Show
            danielbeck Daniel Beck added a comment - See above linked PR 1348 for an explanation and proposed solution.

              People

              Assignee:
              danielbeck Daniel Beck
              Reporter:
              redsolo redsolo
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: