mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
Jenkins drop cppcheck and clang analyzer
- these only run in master and the output isn't really visible/known
This commit is contained in:
Vendored
-76
@@ -82,82 +82,6 @@ pipeline {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
stage('Clang analyzer') {
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'px4io/px4-dev-clang:2020-04-01'
|
|
||||||
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'export'
|
|
||||||
sh 'make distclean'
|
|
||||||
sh 'git fetch --tags'
|
|
||||||
sh 'make scan-build'
|
|
||||||
// publish html
|
|
||||||
publishHTML target: [
|
|
||||||
reportTitles: 'clang static analyzer',
|
|
||||||
allowMissing: false,
|
|
||||||
alwaysLinkToLastBuild: true,
|
|
||||||
keepAll: true,
|
|
||||||
reportDir: 'build/scan-build/report_latest',
|
|
||||||
reportFiles: '*',
|
|
||||||
reportName: 'Clang Static Analyzer'
|
|
||||||
]
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
sh 'make distclean'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
when {
|
|
||||||
anyOf {
|
|
||||||
branch 'master'
|
|
||||||
branch 'beta'
|
|
||||||
branch 'stable'
|
|
||||||
branch 'pr-jenkins' // for testing
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Cppcheck') {
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
image 'px4io/px4-dev-ros-melodic:2020-04-01'
|
|
||||||
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'export'
|
|
||||||
sh 'make distclean'
|
|
||||||
sh 'git fetch --tags'
|
|
||||||
sh 'make cppcheck'
|
|
||||||
// publish html
|
|
||||||
publishHTML target: [
|
|
||||||
reportTitles: 'Cppcheck',
|
|
||||||
allowMissing: false,
|
|
||||||
alwaysLinkToLastBuild: true,
|
|
||||||
keepAll: true,
|
|
||||||
reportDir: 'build/cppcheck/',
|
|
||||||
reportFiles: '*',
|
|
||||||
reportName: 'Cppcheck'
|
|
||||||
]
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
sh 'make distclean'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
when {
|
|
||||||
anyOf {
|
|
||||||
branch 'master'
|
|
||||||
branch 'beta'
|
|
||||||
branch 'stable'
|
|
||||||
branch 'pr-jenkins' // for testing
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Airframe') {
|
stage('Airframe') {
|
||||||
agent {
|
agent {
|
||||||
docker { image 'px4io/px4-dev-base-bionic:2020-04-01' }
|
docker { image 'px4io/px4-dev-base-bionic:2020-04-01' }
|
||||||
|
|||||||
Reference in New Issue
Block a user