Skip to content

Commit 44f5085

Browse files
author
Vaughn Dice
authored
Merge pull request #150 from vdice/no-retry-if-master
feat(Jenkinsfile): no retry prompt if master
2 parents 75c43e7 + f59bb66 commit 44f5085

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ waitUntil {
135135
true
136136
} catch(error) {
137137
node('linux') {
138-
withCredentials([[$class: 'StringBinding', credentialsId: '8a727911-596f-4057-97c2-b9e23de5268d', variable: 'SLACKEMAIL']]) {
139-
mail body: """<!DOCTYPE html>
138+
if (git_branch != "remotes/origin/master") {
139+
withCredentials([[$class: 'StringBinding', credentialsId: '8a727911-596f-4057-97c2-b9e23de5268d', variable: 'SLACKEMAIL']]) {
140+
mail body: """<!DOCTYPE html>
140141
<html>
141142
<head>
142143
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
@@ -150,9 +151,10 @@ Commit: ${env.CHANGE_TITLE}<br/>
150151
</div>
151152
</html>
152153
""", from: 'jenkins@ci.deis.io', subject: 'Workflow CLI E2E Test Failure', to: env.SLACKEMAIL, mimeType: 'text/html'
154+
}
155+
input "Retry the e2e tests?"
153156
}
154157
}
155-
input "Retry the e2e tests?"
156-
false
158+
false
157159
}
158160
}

0 commit comments

Comments
 (0)