Commit 00261650 authored by Raphael Defosseux's avatar Raphael Defosseux

another fix

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 2e2400e3
...@@ -27,16 +27,13 @@ pipeline { ...@@ -27,16 +27,13 @@ pipeline {
// Doing it manually --> it may have merge conflicts // Doing it manually --> it may have merge conflicts
sh "git merge --ff origin/${env.gitlabTargetBranch}" sh "git merge --ff origin/${env.gitlabTargetBranch}"
sh "git log -n1" sh "git log -n1"
} else {
def message = "OAI build #" + BUILD_ID
updateGitlabCommitStatus name: message, state: 'pending'
} }
} }
} }
} }
stage ('Build') { stage ('Build') {
gitlabCommitStatus("Build") {
steps { steps {
gitlabCommitStatus("Build") {
sh "gcc src/test1.c -o bin/test1" sh "gcc src/test1.c -o bin/test1"
sh "gcc src/test2.c -o bin/test2" sh "gcc src/test2.c -o bin/test2"
sh "cppcheck --enable=warning --force --xml --xml-version=2 src 2> cppcheck.xml" sh "cppcheck --enable=warning --force --xml --xml-version=2 src 2> cppcheck.xml"
...@@ -44,8 +41,8 @@ pipeline { ...@@ -44,8 +41,8 @@ pipeline {
} }
} }
stage ('Test') { stage ('Test') {
gitlabCommitStatus("Test") {
steps { steps {
gitlabCommitStatus("Test") {
sh "./bin/test1" sh "./bin/test1"
sh "./bin/test2" sh "./bin/test2"
} }
......
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