Skip to content

Instantly share code, notes, and snippets.

@i386
Created December 7, 2016 03:50
Show Gist options
  • Save i386/9028febc7e48d5fb368362c723816592 to your computer and use it in GitHub Desktop.
Save i386/9028febc7e48d5fb368362c723816592 to your computer and use it in GitHub Desktop.
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