Running build is shown as "UNKNOWN" incorrectly (purple vomit)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The API is returning "UNKNOWN" for running state, not "RUNNING".

      To reproduce, run a pipeline with the following:

      node {
        sleep 1000
      }
      

      Then hit up the url for the run and you will see:

      {
      "_class": "io.jenkins.blueocean.service.embedded.rest.PipelineRunImpl",
      "artifacts": [],
      "changeSet": [],
      "durationInMillis": 0,
      "enQueueTime": "2016-05-25T12:43:34.462+1000",
      "endTime": null,
      "estimatedDurationInMillis": 100123,
      "id": "2",
      "organization": "jenkins",
      "pipeline": "testing",
      "result": "UNKNOWN",
      "runSummary": "?",
      "startTime": "2016-05-25T12:43:34.465+1000",
      "state": "RUNNING",
      "type": "WorkflowRun",
      "commitId": null
      }
      

            Assignee:
            Cliff Meyers
            Reporter:
            James Dumay
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: