Browse Source

Jenkins add clang static analyzer (scan-build)

sbg
Daniel Agar 7 years ago
parent
commit
670111875e
  1. 22
      Jenkinsfile

22
Jenkinsfile vendored

@ -237,6 +237,28 @@ pipeline { @@ -237,6 +237,28 @@ pipeline {
}
}
stage('clang analyzer') {
agent {
docker {
image 'px4io/px4-dev-clang:2017-10-23'
args '-e CI=true -e CCACHE_BASEDIR=$WORKSPACE -e CCACHE_DIR=/tmp/ccache -v /tmp/ccache:/tmp/ccache:rw'
}
}
steps {
sh 'make clean'
sh 'make scan-build'
// publish html
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'build/scan-build/*',
reportFiles: '*',
reportName: 'Clang Static Analyzer'
]
}
}
stage('clang tidy') {
agent {
docker {

Loading…
Cancel
Save