Skip to content

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

License

Notifications You must be signed in to change notification settings

tiket/imperative-when

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%