File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
.ci/jenkins/workflow-mintests Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,27 @@ pipeline {
129
129
echo ' I succeeded!'
130
130
}
131
131
unstable {
132
- echo ' I am unstable :/'
132
+ echo ' I am unstable :/ Emailing PR author and one of the ISCE3 maintainers.'
133
+ emailStatus()
133
134
}
134
135
failure {
135
- echo ' I failed :('
136
+ echo ' I failed :( Emailing PR author and one of the ISCE3 maintainers.'
137
+ emailStatus()
136
138
}
137
139
changed {
138
140
echo ' Things were different before...'
139
141
}
140
142
}
141
143
}
144
+
145
+ def emailStatus () {
146
+
147
+ subject : " ISCE3 build ${ currentBuild.result} : ${ currentBuild.fullDisplayName} " ,
148
+ body : " Minimum workflow test ${ currentBuild.result} : ${ env.BUILD_URL} "
149
+ emailext(
150
+ subject : " ISCE3 build ${ currentBuild.result} : ${ currentBuild.fullDisplayName} " ,
151
+ body : " Minimum workflow test ${ currentBuild.result} : ${ env.BUILD_URL} " ,
152
+ recipientProviders : [[$class : ' DevelopersRecipientProvider' ]]
153
+ )
154
+ }
155
+
You can’t perform that action at this time.
0 commit comments