Commit c20e9959 authored by Raphael Defosseux's avatar Raphael Defosseux

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

fix in slack message

See merge request !9
parents 48aeb4e3 223d6b0f
Pipeline #8619 passed with stage
in 0 seconds
...@@ -66,7 +66,7 @@ pipeline { ...@@ -66,7 +66,7 @@ pipeline {
if ("MERGE".equals(env.gitlabActionType)) { if ("MERGE".equals(env.gitlabActionType)) {
echo "This is a MERGE event" echo "This is a MERGE event"
addGitLabMRComment comment: message addGitLabMRComment comment: message
def message2 = "OAI build #" + BUILD_ID + " passed (" + BUILD_URL + ") -- MergeRequest #" + env.gitlabMergeRequestId + " (" + env.gitlabMergeRequestTitle + ")" def message2 = "OAI build #" + BUILD_ID + " passed (" + BUILD_URL + ") -- MergeRequest #" + env.gitlabMergeRequestIid + " (" + env.gitlabMergeRequestTitle + ")"
slackSend channel: 'sandbox', color: 'good', message: message2 slackSend channel: 'sandbox', color: 'good', message: message2
} else { } else {
slackSend channel: 'sandbox', color: 'good', message: message slackSend channel: 'sandbox', color: 'good', message: message
...@@ -79,7 +79,7 @@ pipeline { ...@@ -79,7 +79,7 @@ pipeline {
if ("MERGE".equals(env.gitlabActionType)) { if ("MERGE".equals(env.gitlabActionType)) {
echo "This is a MERGE event" echo "This is a MERGE event"
addGitLabMRComment comment: message addGitLabMRComment comment: message
def message2 = "OAI build #" + BUILD_ID + " failed (" + BUILD_URL + ") -- MergeRequest #" + env.gitlabMergeRequestId + " (" + env.gitlabMergeRequestTitle + ")" def message2 = "OAI build #" + BUILD_ID + " failed (" + BUILD_URL + ") -- MergeRequest #" + env.gitlabMergeRequestIid + " (" + env.gitlabMergeRequestTitle + ")"
slackSend channel: 'sandbox', color: 'danger', message: message2 slackSend channel: 'sandbox', color: 'danger', message: message2
} else { } else {
slackSend channel: 'sandbox', color: 'danger', message: message 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