Commit 40efcf48 authored by Raphael Defosseux's avatar Raphael Defosseux

trying again

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 5a670706
Pipeline #10181 passed with stage
in 0 seconds
#!/bin/groovy
// Comments
// author raphael defosseux
// date 2018-07-17
// copyright oai
def TERMINATE_STATUS
pipeline {
agent {
......@@ -22,6 +24,8 @@ pipeline {
echo "Git URL is ${GIT_URL}"
echo "GitLab Act is ${env.gitlabActionType}"
script {
TERMINATE_STATUS = 'todo'
echo "TERMINATE is ${TERMINATE_STATUS}"
if ("MERGE".equals(env.gitlabActionType)) {
//echo "GitLab src branch is ${env.gitlabSourceBranch}"
//echo "GitLab tar branch is ${env.gitlabTargetBranch}"
......@@ -53,6 +57,13 @@ pipeline {
sh "cppcheck --enable=warning --force --xml --xml-version=2 src 2> cppcheck.xml"
}
}
post {
always {
script {
TERMINATE_STATUS = 'done'
}
}
}
}
stage ("Test") {
steps {
......@@ -61,6 +72,7 @@ pipeline {
sh "./bin/test2"
sh "./bin/test3"
}
echo "TERMINATE is ${TERMINATE_STATUS}"
}
}
stage ("Test slave job") {
......
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