Commit e807bcf1 authored by Raphael Defosseux's avatar Raphael Defosseux

testing jenkins-slack integration

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent d6537c87
Pipeline #8608 passed with stage
in 0 seconds
......@@ -62,24 +62,25 @@ pipeline {
}
success {
script {
def msg = "OAI build #" + BUILD_ID + " passed"
if ("MERGE".equals(env.gitlabActionType)) {
echo "This is a MERGE event"
def msg = "OAI build #" + BUILD_ID + " passed"
echo "$msg"
addGitLabMRComment comment: msg
def message = "OAI build #" + BUILD_ID + " passed (" + BUILD_URL + ")"
echo "$message"
addGitLabMRComment comment: message
}
slackSend channel: 'sandbox', color: 'good', message: msg
}
}
failure {
script {
def msg = "OAI build #" + BUILD_ID + " failed"
if ("MERGE".equals(env.gitlabActionType)) {
echo "This is a MERGE event"
def message = "OAI build #" + BUILD_ID + " failed (" + BUILD_URL + ")"
addGitLabMRComment comment: message
}
slackSend channel: 'sandbox', color: 'danger', message: msg
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment