Jenkins Pipeline Syntax: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


}
}
</syntaxhighlight>
=Parallel Stages=
<syntaxhighlight lang='groovy'>
stage("tests") {
    parallel {
        stage("unit tests") {
            // run unit tests ...
        }
        stage("coverage tests") {
            // run coverage tests ...
        }
    }
}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 05:24, 9 December 2017

Internal

Overview

node {

    echo 'Pipeline logic starts'

}

Parallel Stages

stage("tests") {

    parallel {

        stage("unit tests") {

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

             // run coverage tests ...
        }
    }
}