File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env groovy
2+ @Library (' pipeline-library' )_
23
34def 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... \u D83E\u DD14'
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}
You can’t perform that action at this time.
0 commit comments