Skip to content

Commit f390021

Browse files
author
Vaughn Dice
committed
feat(Jenkinsfile): no e2e retry logic if master
1 parent a03cf09 commit f390021

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
@@ -143,8 +143,9 @@ waitUntil {
143143
true
144144
} catch(error) {
145145
node('linux') {
146-
withCredentials([[$class: 'StringBinding', credentialsId: '8a727911-596f-4057-97c2-b9e23de5268d', variable: 'SLACKEMAIL']]) {
147-
mail body: """<!DOCTYPE html>
146+
if (git_branch != "remotes/origin/master") {
147+
withCredentials([[$class: 'StringBinding', credentialsId: '8a727911-596f-4057-97c2-b9e23de5268d', variable: 'SLACKEMAIL']]) {
148+
mail body: """<!DOCTYPE html>
148149
<html>
149150
<head>
150151
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
@@ -158,9 +159,10 @@ Commit: ${env.CHANGE_TITLE}<br/>
158159
</div>
159160
</html>
160161
""", from: 'jenkins@ci.deis.io', subject: 'Controller-sdk-go E2E Test Failure', to: env.SLACKEMAIL, mimeType: 'text/html'
162+
}
163+
input "Retry the e2e tests?"
161164
}
162165
}
163-
input "Retry the e2e tests?"
164-
false
166+
false
165167
}
166168
}

0 commit comments

Comments
 (0)