Skip to content

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

Notifications You must be signed in to change notification settings

PhysicalGraph/imperative-when

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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'
    }
}

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%