Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visualizing build steps in Jenkins pipeline

In my Jenkins pipeline, I trigger several other jobs using the build step and pass some parameters to it. I'm having issues visualizing the different jobs I've triggered in addition to my pipeline. I have set up the Jenkins Delivery Pipeline plugin but the documentation for it is extremely vague and I have only been able to visualize the steps within my pipeline, despite tagging the jobs with both a stage and task name.

Example:

I have two jobs in Jenkins as pipelines/workflow jobs with the following pipeline script:

Job Foo:

stage('Building') {
    println 'Triggering job'
    build 'Bar'
}

Job Bar:

node('master') {
    stage('Child job stage') {
        println 'Doing stuff in child job'
    }
}

When visualizing this with the Jenkins Pipeline Delivery plugin, I only get this: Pipeline view

How do I make it also show the stage in job Bar in a separate box?

like image 863
Martin Avatar asked Apr 17 '17 18:04

Martin


1 Answers

Unfortunately, this use case is currently not supported in the Delivery Pipeline plugin version 1.0.0. The delivery pipeline plugin views for Jenkins pipelines are only rendering what is contained within one pipeline definition at this point. This feature request is tracked in JENKINS-43679.

like image 90
tommysdk Avatar answered Oct 24 '22 01:10

tommysdk