Commit a9f0998d authored by Raphael Defosseux's avatar Raphael Defosseux

Adding cppcheck

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent e2e70737
......@@ -22,6 +22,7 @@ pipeline {
stage ('Build') {
steps {
sh "gcc src/test1.c -o bin/test1"
sh "cppcheck --enable=warning --force --xml --xml-version=2 src 2> cppcheck.xml"
}
}
stage ('Test') {
......@@ -31,10 +32,17 @@ pipeline {
}
}
post {
always {
script {
if(fileExists('cppcheck.xml')) {
archiveArtifacts artifacts: 'cppcheck.xml'
}
}
}
success {
updateGitlabCommitStatus name: 'OAI jenkins', state: 'success'
}
cleanup {
failure {
updateGitlabCommitStatus name: 'OAI jenkins', state: 'failed'
}
}
......
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