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

If the step does not belong to the node, then the step information should not be returned.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

       

      curl -X GET \
        http://jenkins.kubesphere.com/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/ \
        -H 'authorization: Basic cnVuemV4aWE6MTIz' \
        -H 'cache-control: no-cache' \
        -H 'postman-token: 32e1b8aa-7fa4-caf2-8ebc-0e5fcbcd9c75'
      

      response:

       

       

      [{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl","_links":{"self":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/40/"},"actions":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/40/actions/"}},"actions":[{"_class":"io.jenkins.blueocean.service.embedded.rest.ActionProxiesImpl","_links":{"self":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/40/log/"}},"_class":"org.jenkinsci.plugins.workflow.support.actions.LogActionImpl","urlName":"log"}],"displayDescription":"world","displayName":"Print Message","durationInMillis":16,"id":"40","input":null,"result":"SUCCESS","startTime":"2018-08-29T07:23:25.395+0000","state":"FINISHED","type":"STEP"}]
      

       

      req 

       

      curl -X GET \
        http://jenkins.kubesphere.com/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/9/ \
        -H 'authorization: Basic cnVuemV4aWE6MTIz' \
        -H 'cache-control: no-cache' \
        -H 'postman-token: 5ea82a1a-b59c-7060-ec0b-1c3e75179690'
      

      response

       

       

      { "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl", "_links": { "self": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/9/" }, "actions": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/9/actions/" } }, "actions": [ { "_class": "org.jenkinsci.plugins.workflow.support.actions.LogActionImpl", "_links": { "self": { "_class": "io.jenkins.blueocean.rest.hal.Link", "href": "/blue/rest/organizations/jenkins/pipelines/966f9d0b-6566-412b-851c-48860d0017d4-test-create-pipeline/runs/7/nodes/39/steps/9/log/" } }, "urlName": "log" } ], "displayDescription": "https://github.com/jenkinsci/kubernetes-plugin.git", "displayName": "Git", "durationInMillis": 13585, "id": "9", "input": null, "result": "SUCCESS", "startTime": "2018-08-29T06:42:00.813+0000", "state": "FINISHED", "type": "STEP" }

       

          [JENKINS-53340] If the step does not belong to the node, then the step information should not be returned.

          There are no comments yet on this issue.

            Unassigned Unassigned
            runzexia runze xia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: