Skip to content

Commit eabaeef

Browse files
committed
Add slack notifications to #ci channel
QA-2921
1 parent c4b9293 commit eabaeef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Jenkinsfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env groovy
2+
@Library('pipeline-library')_
23

34
def schedule = env.BRANCH_NAME.contains('master') ? '@monthly' : env.BRANCH_NAME == 'develop' ? '@midnight' : ''
45

@@ -132,6 +133,20 @@ pipeline {
132133
changed {
133134
echo 'Things were different before... \uD83E\uDD14'
134135
}
136+
fixed {
137+
script {
138+
if ((env.BRANCH_NAME == 'master') || (env.BRANCH_NAME == 'develop')) {
139+
slackNotifier("#ci", currentBuild.currentResult, "${env.BRANCH_NAME} - Back to normal")
140+
}
141+
}
142+
}
143+
regression {
144+
script {
145+
if ((env.BRANCH_NAME == 'master') || (env.BRANCH_NAME == 'develop')) {
146+
slackNotifier("#ci", currentBuild.currentResult, "${env.BRANCH_NAME} - First failure")
147+
}
148+
}
149+
}
135150
}
136151

137152
}

0 commit comments

Comments
 (0)