summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2019-07-13 00:08:26 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2019-07-13 00:08:26 +0300
commit7aa451407c098dd075fe5cf954e10e1761a6210e (patch)
treed589c2ba85c483f6e88880053f8a59eb40342d12
parentJenkinsfile: Add 'fetch' stage. (diff)
downloadjenkins-master.tar.gz
Jenkinsfile: Notify with Slack.HEADmaster
* Jenkinsfile: Notify with Slack.
-rw-r--r--Jenkinsfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 6e328cd..98b3cf9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,3 +1,5 @@
+@Library('jenkins-wi-shared-library') _
+
pipeline {
agent {
label 'guixsd'
@@ -6,6 +8,7 @@ pipeline {
stage('fetch') {
steps {
dir('/home/oleg/src/guix') {
+ sendNotifications 'STARTED'
sh 'git fetch origin'
}
}
@@ -46,4 +49,9 @@ pipeline {
}
}
}
+ post {
+ always {
+ sendNotifications currentBuild.result
+ }
+ }
}