Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 379 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 379 Bytes

imperative-when

Use when statement in imperative pipeline inkl. Blue Ocean shows skipped stages

Usage

Include in Jenkins

Define a global pipeline library that uses this repo. Enable "Load implicitly" if you like.

Example Pipeline code

stage('Zero') {
    when(BRANCH_NAME != 'master') {
        echo 'Performing steps of stage Zero'
    }
}