Skip to content

Commit 29a5aba

Browse files
authored
Merge pull request #986 from src-d/add-jenkins-slack-notifications
add jenkins slack notifications
2 parents d3bc1a0 + 1d6e3ee commit 29a5aba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,12 @@ pipeline {
6767
}
6868
}
6969
}
70+
post {
71+
success {
72+
slackSend (color: '#2eb886', message: "SUCCESS: `${env.JOB_NAME}` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>")
73+
}
74+
failure {
75+
slackSend (color: '#b82e60', message: "FAILED: `${env.JOB_NAME}` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>")
76+
}
77+
}
7078
}

0 commit comments

Comments
 (0)