Home > Blockchain >  Jenkins parallel and sequential stages
Jenkins parallel and sequential stages

Time:10-27

I am trying to run a job with parallel and sequential stages. My code looks like this, each stage will be a groovy script therefore I am running with parallel name: and not parallel {}

stage('Start profiling') {
steps {
    script{
        parallel stageParallel: {
            stage("parallel"){
                echo"parallel"
            }
        }, runTest: {
            stage("sequential 1"){
                echo "sequential 1 "
            }
            stage("sequential 2"){
                echo "sequential 2 "
            }
        }
    }
}
}

Image of Blue Ocean

As you can see it gets executed, but can´t see it on Open Blue Ocean as a step.

Image of stage view

CodePudding user response:

Displaying sequential stages within parallel stages tends to be flaky in Blue Ocean. There is an open bug relating to your problem in the Jenkins bug backlog, but it hasn't been looked into since 2019. Unfortunately there is little you can do from your end since you pipeline code is obviously correct.

  • Related