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

Input step: BlueOcean UI does not recognize node, results in "This stage has no steps"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Jenkins ver. 2.189
      BlueOcean 1.18.1

      When waiting for user input (via the Input step), the BlueOcean UI does not correctly show that step, and thus the user input buttons are missing.

       

      It seems that the BlueOcean UI cannot pick up on the third node/stage in the job. The node ID according to the JSON output (GET /blue/rest/organizations/jenkins/pipelines/Continuous%20Deployment/runs/144/nodes/) is 72, but BlueOcean won't let me click on that node. Perhaps it is not making the request to that node ID (or an incorrect one) and thus cannot get the data for the step.

       

      Attached is a screenshot and a .har archive of the network requests.

       

      {{[{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl","_links":{"self":
      {"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/21/"}
      ,"actions":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/21/actions/"},"steps":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/21/steps/"}},"actions":[],"displayDescription":null,"displayName":"Notify Slack","durationInMillis":216,"id":"21","input":null,"result":"SUCCESS","startTime":"2019-08-16T15:51:05.153+0000","state":"FINISHED","type":"STAGE","causeOfBlockage":null,"edges":[\{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl","id":"38","type":"STAGE"}],"firstParent":null,"restartable":true},{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl","_links":{"self":
      {"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/38/"}
      ,"actions":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/38/actions/"},"steps":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/38/steps/"}},"actions":[],"displayDescription":null,"displayName":"Cut release branch","durationInMillis":3971,"id":"38","input":null,"result":"SUCCESS","startTime":"2019-08-16T15:51:05.404+0000","state":"FINISHED","type":"STAGE","causeOfBlockage":null,"edges":[\{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl","id":"72","type":"STAGE"}],"firstParent":"21","restartable":true},{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl","_links":{"self":
      {"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/72/"}
      ,"actions":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/72/actions/"},"steps":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/72/steps/"}},"actions":[],"displayDescription":null,"displayName":"Allow for manual QA","durationInMillis":0,"id":"72","input":null,"result":null,"startTime":null,"state":null,"type":"STAGE","causeOfBlockage":null,"edges":[\{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl","id":"92","type":"STAGE"}],"firstParent":"38","restartable":false},{"_class":"io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl","_links":{"self":
      {"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/92/"}
      ,"actions":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/92/actions/"},"steps":{"_class":"io.jenkins.blueocean.rest.hal.Link","href":"/blue/rest/organizations/jenkins/pipelines/Continuous Deployment/runs/144/nodes/92/steps/"}},"actions":[],"displayDescription":null,"displayName":"GitHub Release","durationInMillis":0,"id":"92","input":null,"result":null,"startTime":null,"state":null,"type":"STAGE","causeOfBlockage":null,"edges":[],"firstParent":"72","restartable":false}]}} 

       

          [JENKINS-58969] Input step: BlueOcean UI does not recognize node, results in "This stage has no steps"

          Dan Alvizu added a comment -

          I'm seeing this with the kubernetes plugin, where our nodes are ephemeral

          Dan Alvizu added a comment - I'm seeing this with the kubernetes plugin, where our nodes are ephemeral

          R. added a comment -

          Same here but only if input is within stage with parallel steps.

          R. added a comment - Same here but only if input is within stage with parallel steps.

          Xudong added a comment -

          I got the same issue, the input button is missing when the input is used with when in parallel stage.

          I am defining like this:

          // code placeholder
          parallel{parallel{              stage('termination finished'){                  when{                      beforeInput true                      environment name: 'status', value: 'termination finished'                  }               input{                      message 'terminition completed, click "proceed" to continue'                  }                  steps{                      echo 'go to next'                  }              }              stage('failed before termination'){                  when{                      beforeInput true                      environment name: 'status', value: 'failed before termination'                  }                  input{                      message 'failed before termination, click "proceed" to try again'                  }                  steps{                      echo 'try again'                  }              }
          

          Is this issue solved? how?

          Thank you!

           

          Xudong added a comment - I got the same issue, the input button is missing when the input is used with when in parallel stage. I am defining like this: // code placeholder parallel{parallel{              stage( 'termination finished' ){                  when{                      beforeInput true                       environment name: 'status' , value: 'termination finished'                   }               input{                      message 'terminition completed, click "proceed" to continue '                   }                  steps{                      echo 'go to next'                   }              }              stage( 'failed before termination' ){                  when{                      beforeInput true                       environment name: 'status' , value: 'failed before termination'                   }                  input{                      message 'failed before termination, click "proceed" to try again'                   }                  steps{                      echo ' try again'                   }              } Is this issue solved? how? Thank you!  

            Unassigned Unassigned
            timethos Tim Huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: