Adding notification when Jenkins build fails or is unstable.
+@Library('jenkins-shared-libraries')
+
def REPO_NAME = 'strongbox/strongbox'
pipeline {
@@ -67,6 +69,12 @@ pipeline {
}
post {
always {
+ script {
+ if(BRANCH_NAME == 'master' && currentBuild.result != 'ABORTED') {
+ def skype = new org.carlspring.jenkins.notification.skype.Skype()
+ skype.sendNotification("admins;devs");
+ }
+ }
deleteDir()
}
}
