Commit 4dfb1356 authored by Raphael Defosseux's avatar Raphael Defosseux

fix in slack notifications

adding an error to test
Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent e807bcf1
Pipeline #8610 failed with stage
in 0 seconds
...@@ -62,25 +62,22 @@ pipeline { ...@@ -62,25 +62,22 @@ pipeline {
} }
success { success {
script { script {
def msg = "OAI build #" + BUILD_ID + " passed" 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 message = "OAI build #" + BUILD_ID + " passed (" + BUILD_URL + ")"
echo "$message"
addGitLabMRComment comment: message addGitLabMRComment comment: message
} }
slackSend channel: 'sandbox', color: 'good', message: msg slackSend channel: 'sandbox', color: 'good', message: message
} }
} }
failure { failure {
script { script {
def msg = "OAI build #" + BUILD_ID + " failed" 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
} }
slackSend channel: 'sandbox', color: 'danger', message: msg slackSend channel: 'sandbox', color: 'danger', message: message
} }
} }
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
int main() int main()
{ {
unsigned int testId = 1; unsigned int testId = 1;
i = 0;
printf ("Test%d\n", testId); printf ("Test%d\n", testId);
#ifdef _DEBUG #ifdef _DEBUG
char a[10]; char a[10];
......
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