• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • pannonian, iapetus, 1.0, Blue Ocean 1.0-rc3

          [JENKINS-41579] API for Pipeline level for causeOfBlockage

          Vivek Pandey added a comment -

          jamesdumay causeOfBlockage is going to appear in the queued item of pipeline run. We can't provide it as part of run response as causeOfBlockage is applicable only to queued item.

          UI can call queue API to check if pipeline has queued item.

          GET http://localhost:8080/jenkins/blue/rest/organizations/jenkins/pipelines/pipeline1/queue/

          [ {
            "_class" : "io.jenkins.blueocean.service.embedded.rest.QueueItemImpl",
            "_links" : {
              "parent" : {
                "_class" : "io.jenkins.blueocean.rest.hal.Link",
                "href" : "/blue/rest/organizations/jenkins/pipelines/pipeline1/"
              },
              "self" : {
                "_class" : "io.jenkins.blueocean.rest.hal.Link",
                "href" : "/blue/rest/organizations/jenkins/pipelines/pipeline1/queue/4/"
              }
            },
            "causeOfBlockage" : "Waiting for next available executor",
            "expectedBuildNumber" : 4,
            "id" : "4",
            "organization" : "jenkins",
            "pipeline" : "pipeline1",
            "queuedTime" : "2017-02-16T12:07:21.725-0800"
          } ]
          

          PR is up there https://github.com/jenkinsci/blueocean-plugin/pull/837

          Vivek Pandey added a comment - jamesdumay causeOfBlockage is going to appear in the queued item of pipeline run. We can't provide it as part of run response as causeOfBlockage is applicable only to queued item. UI can call queue API to check if pipeline has queued item. GET http://localhost:8080/jenkins/blue/rest/organizations/jenkins/pipelines/pipeline1/queue/ [ { "_class" : "io.jenkins.blueocean.service.embedded. rest .QueueItemImpl" , "_links" : { "parent" : { "_class" : "io.jenkins.blueocean. rest .hal.Link" , "href" : "/blue/ rest /organizations/jenkins/pipelines/pipeline1/" }, "self" : { "_class" : "io.jenkins.blueocean. rest .hal.Link" , "href" : "/blue/ rest /organizations/jenkins/pipelines/pipeline1/queue/4/" } }, "causeOfBlockage" : "Waiting for next available executor" , "expectedBuildNumber" : 4, "id" : "4" , "organization" : "jenkins" , "pipeline" : "pipeline1" , "queuedTime" : "2017-02-16T12:07:21.725-0800" } ] PR is up there https://github.com/jenkinsci/blueocean-plugin/pull/837

          James Dumay added a comment -

          perfect - thanks mate

          James Dumay added a comment - perfect - thanks mate

            vivek Vivek Pandey
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: