From 7aa451407c098dd075fe5cf954e10e1761a6210e Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 13 Jul 2019 00:08:26 +0300 Subject: Jenkinsfile: Notify with Slack. * Jenkinsfile: Notify with Slack. --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + } + } } -- cgit v1.2.3