Skip to content

Commit

Permalink
feat(Jenkinsfile): no retry prompt if master
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaughn Dice committed Jul 25, 2016
1 parent 70df6e0 commit f59bb66
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ waitUntil {
true
} catch(error) {
node('linux') {
withCredentials([[$class: 'StringBinding', credentialsId: '8a727911-596f-4057-97c2-b9e23de5268d', variable: 'SLACKEMAIL']]) {
mail body: """<!DOCTYPE html>
if (git_branch != "remotes/origin/master") {
withCredentials([[$class: 'StringBinding', credentialsId: '8a727911-596f-4057-97c2-b9e23de5268d', variable: 'SLACKEMAIL']]) {
mail body: """<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
Expand All @@ -150,9 +151,10 @@ Commit: ${env.CHANGE_TITLE}<br/>
</div>
</html>
""", from: 'jenkins@ci.deis.io', subject: 'Workflow CLI E2E Test Failure', to: env.SLACKEMAIL, mimeType: 'text/html'
}
input "Retry the e2e tests?"
}
}
input "Retry the e2e tests?"
false
false
}
}

0 comments on commit f59bb66

Please sign in to comment.