Commit 2e2400e3 authored by Raphael Defosseux's avatar Raphael Defosseux

fix syntax

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent c790554a
...@@ -7,6 +7,7 @@ pipeline { ...@@ -7,6 +7,7 @@ pipeline {
options { options {
disableConcurrentBuilds() disableConcurrentBuilds()
timestamps() timestamps()
gitlabBuilds(builds: ["Build", "Test"])
} }
stages { stages {
...@@ -33,22 +34,20 @@ pipeline { ...@@ -33,22 +34,20 @@ pipeline {
} }
} }
} }
gitlabBuilds(builds: ["Build", "Test"]) { stage ('Build') {
stage ('Build') { gitlabCommitStatus("Build") {
gitlabCommitStatus("Build") { steps {
steps { 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"
}
} }
} }
stage ('Test') { }
gitlabCommitStatus("Test") { stage ('Test') {
steps { gitlabCommitStatus("Test") {
sh "./bin/test1" steps {
sh "./bin/test2" sh "./bin/test1"
} 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