2

For the following sample, the display of the job lumps all "Tests" together. Is there a way to show each individual test stacked horizontally? See attached picture.

node ('master') {
  stage("Setup") {
    echo "setting up tests on master"
  }
  stage("Tests") {
    def stepsToRun = [:]
    for (String name : resultList) {
      stepsToRun["Tests:${name}"] = { node('another_build_node') {
          echo "start |${name}|"
          sleep 1
          echo "done'"
        }}
      }
      println stepsToRun
      parallel stepsToRun
  }
  stage("Teardown") {
    echo "post-test teardown on master"
  }
}

job display

P Solomon
  • 175
  • 1
  • 10

2 Answers2

2

There is no way to see parallel steps in this UI. Use Jenkins BlueOcean plugin: https://jenkins.io/projects/blueocean/

user1789357
  • 93
  • 2
  • 10
0

No. A Pipeline "stage":

is a step for defining a conceptually distinct subset of the entire Pipeline, for example: "Build", "Test", and "Deploy", which is used by many plugins to visualize or present Jenkins Pipeline status/progress.

The workflow decomposes by Stage because they are the driving components in the following workflow:

Jenkins Pipeline Stages

However, you could try to create dynamic stages, as several answers here suggest: Can I create dynamically stages in a Jenkins pipeline?

Community
  • 1
  • 1
msanford
  • 11,803
  • 11
  • 66
  • 93