Commit 0a40c14a authored by Raphael Defosseux's avatar Raphael Defosseux

CI: add the ccpcheck stage

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent e557493d
...@@ -31,7 +31,7 @@ pipeline { ...@@ -31,7 +31,7 @@ pipeline {
disableConcurrentBuilds() disableConcurrentBuilds()
timestamps() timestamps()
gitLabConnection('OAI GitLab') gitLabConnection('OAI GitLab')
gitlabBuilds(builds: ["Build eNb-USRP", "Build phy-sim", "Build eNb-ethernet", "Build UE-ethernet"]) gitlabBuilds(builds: ["Build eNb-USRP", "Build phy-sim", "Build eNb-ethernet", "Build UE-ethernet", "Analysis with cppcheck"])
ansiColor('xterm') ansiColor('xterm')
} }
...@@ -131,8 +131,25 @@ pipeline { ...@@ -131,8 +131,25 @@ pipeline {
} }
} }
stage ("Start VM -- cppcheck") {
steps {
timeout (time: 5, unit: 'MINUTES') {
sh "./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant cppcheck --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
stage ("Variant Builds") { stage ("Variant Builds") {
parallel { parallel {
stage ("Analysis with cppcheck") {
steps {
gitlabCommitStatus(name: "Analysis with cppcheck") {
timeout (time: 20, unit: 'MINUTES') {
sh "./ci-scripts/oai-ci-vm-tool wait --workspace $WORKSPACE --variant cppcheck --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
}
}
stage ("Build eNb-USRP") { stage ("Build eNb-USRP") {
steps { steps {
gitlabCommitStatus(name: "Build eNb-USRP") { gitlabCommitStatus(name: "Build eNb-USRP") {
...@@ -179,7 +196,7 @@ pipeline { ...@@ -179,7 +196,7 @@ pipeline {
always { always {
script { script {
dir ('archives') { dir ('archives') {
sh "zip -r -qq vm_build_logs.zip enb_usrp phy_sim enb_eth ue_eth" sh "zip -r -qq vm_build_logs.zip enb_usrp phy_sim enb_eth ue_eth cppcheck"
} }
if(fileExists('archives/vm_build_logs.zip')) { if(fileExists('archives/vm_build_logs.zip')) {
archiveArtifacts artifacts: 'archives/vm_build_logs.zip' archiveArtifacts artifacts: 'archives/vm_build_logs.zip'
......
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