Jenkins Pipeline Syntax: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 24: Line 24:
stage("tests") {
stage("tests") {


     parallel {
     parallel(


         stage("unit tests") {
         "unit tests": {


             // run unit tests ...
             // run unit tests  
        }
        },
        stage("coverage tests") {
        "coverage tests": {


             // run coverage tests ...
             // run coverage tests
        }
        }
    }
    )
}
}



Revision as of 06:03, 9 December 2017

External

Internal

Overview

node {

    echo 'Pipeline logic starts'

}

Parallel Stages

stage("tests") {

    parallel(

        "unit tests": {

             // run unit tests 
         },
         "coverage tests": {

             // run coverage tests
         }
     )
}

Step Reference