Created
December 7, 2016 03:50
-
-
Save i386/9028febc7e48d5fb368362c723816592 to your computer and use it in GitHub Desktop.
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
pipeline { | |
stage('a single stage') { | |
sh 'echo first step' | |
retry (5) { | |
sh 'echo if this step fails it will be retried 5 times before failing the pipeline' | |
} | |
sh 'last step' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment