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

Expose "jenkins" contributed steps/flownodes

XMLWordPrintable

      Take a simple pipeline like:

      stage "starting"
      node {    
          stage "building"
              sh "echo 42"
          stage "testing"
              sh "echo 43"
      }
      

      There is a bunch of work done by jenkins that is no reflected in the nodes returned for a stage:

      Started by user mic@goo.com
      [Pipeline] stage (starting)
      Entering stage starting
      Proceeding
      [Pipeline] node
      Running on master in /Users/michaelneale/projects/paas/blueocean/blueocean-plugin/work/workspace/pipey
      [Pipeline] {
      [Pipeline] stage (building)
      Entering stage building
      Proceeding
      [Pipeline] sh
      [pipey] Running shell script
      + echo 42
      42
      [Pipeline] stage (testing)
      Entering stage testing
      Proceeding
      [Pipeline] sh
      [pipey] Running shell script
      + echo 43
      43
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: SUCCESS
      

      would it make sense to expose some of these "jenkins" nodes in the stage that they really come under (like starting the build, fetching a node, workspace etc).

      Whilst showing all steps in a flowNode may be possible, showing these "synthetic" steps along with the users steps makes sense.

            Unassigned Unassigned
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: