Created
March 24, 2022 21:49
-
-
Save danielsiwiec/43b4dbb44e274d9dcd8b6d60c7ece3ad to your computer and use it in GitHub Desktop.
Declarative Conditional Pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('Example Deploy') { | |
when { | |
branch 'production' | |
} | |
steps { | |
echo 'Deploying' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment