Jenkins Pipeline Syntax: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=External=
* https://jenkins.io/doc/book/pipeline/syntax/
=Internal=
=Internal=


Line 4: Line 7:


=Overview=
=Overview=


<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>

Revision as of 05:26, 9 December 2017

External

Internal

Overview

node {

    echo 'Pipeline logic starts'

}

Parallel Stages

stage("tests") {

    parallel {

        stage("unit tests") {

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

             // run coverage tests ...
        }
    }
}