Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- stage('deploy-test') {
- try {
- sh 'echo "Fail!"; exit 1'
- } catch(error) {
- echo "First build failed, let's retry if accepted"
- retry(2) {
- input "Retry the job ?"
- echo 'HI'
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement