Commit 48aeb4e3 authored by Raphael Defosseux's avatar Raphael Defosseux

Merge branch 'ci-try-outs' into 'develop'

More info in slack message

See merge request !8
parents c94ad469 4b537161
Pipeline #8617 passed with stage
in 0 seconds
...@@ -62,23 +62,27 @@ pipeline { ...@@ -62,23 +62,27 @@ pipeline {
} }
success { success {
script { script {
def message = "OAI build #" + BUILD_ID + " passed (" + BUILD_URL + ")"
if ("MERGE".equals(env.gitlabActionType)) { if ("MERGE".equals(env.gitlabActionType)) {
echo "This is a MERGE event" 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 addGitLabMRComment comment: message
def message2 = "OAI build #" + BUILD_ID + " passed (" + BUILD_URL + ") -- MergeRequest #" + env.gitlabMergeRequestId + " (" + env.gitlabMergeRequestTitle + ")"
slackSend channel: 'sandbox', color: 'good', message: message2
} else {
slackSend channel: 'sandbox', color: 'good', message: message
} }
} }
} }
failure { failure {
script { script {
def message = "OAI build #" + BUILD_ID + " failed (" + BUILD_URL + ")"
if ("MERGE".equals(env.gitlabActionType)) { if ("MERGE".equals(env.gitlabActionType)) {
echo "This is a MERGE event" echo "This is a MERGE event"
def message = "OAI build #" + BUILD_ID + " failed (" + BUILD_URL + ")"
addGitLabMRComment comment: message addGitLabMRComment comment: message
def message2 = "OAI build #" + BUILD_ID + " failed (" + BUILD_URL + ") -- MergeRequest #" + env.gitlabMergeRequestId + " (" + env.gitlabMergeRequestTitle + ")"
slackSend channel: 'sandbox', color: 'danger', message: message2
} else {
slackSend channel: 'sandbox', color: 'danger', message: message
} }
} }
} }
......
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