mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Jenkins temporarily disable coverage and clang-tidy
- check format first to reduce build utilization
This commit is contained in:
100
Jenkinsfile
vendored
100
Jenkinsfile
vendored
@@ -6,6 +6,19 @@ pipeline {
|
|||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
|
stage('Quality Checks') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'px4io/px4-dev-base:2017-10-23'
|
||||||
|
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'make check_format'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
@@ -116,31 +129,24 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
parallel {
|
parallel {
|
||||||
stage('check_format') {
|
|
||||||
agent {
|
// temporarily disabled until build resources are available
|
||||||
docker {
|
//stage('clang-tidy') {
|
||||||
image 'px4io/px4-dev-base:2017-10-23'
|
// agent {
|
||||||
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
|
// docker {
|
||||||
}
|
// image 'px4io/px4-dev-clang:2017-10-23'
|
||||||
}
|
// args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
|
||||||
steps {
|
// }
|
||||||
sh 'make check_format'
|
// }
|
||||||
}
|
// steps {
|
||||||
}
|
// sh 'make clean'
|
||||||
stage('clang-tidy') {
|
// sh 'make clang-tidy-quiet'
|
||||||
agent {
|
// }
|
||||||
docker {
|
//}
|
||||||
image 'px4io/px4-dev-clang:2017-10-23'
|
|
||||||
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'make clean'
|
|
||||||
sh 'make clang-tidy-quiet'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('tests') {
|
stage('tests') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
@@ -154,29 +160,33 @@ pipeline {
|
|||||||
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('tests coverage') {
|
|
||||||
agent {
|
// temporarily disabled until stable
|
||||||
docker {
|
//stage('tests coverage') {
|
||||||
image 'px4io/px4-dev-base:2017-10-23'
|
// agent {
|
||||||
args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
|
// docker {
|
||||||
}
|
// image 'px4io/px4-dev-base:2017-10-23'
|
||||||
}
|
// args '--env CCACHE_DIR=/tmp/ccache --volume=/tmp/ccache:/tmp/ccache:rw --env CI=true'
|
||||||
steps {
|
// }
|
||||||
sh 'make clean'
|
// }
|
||||||
sh 'make tests_coverage'
|
// steps {
|
||||||
// publish html
|
// sh 'make clean'
|
||||||
publishHTML target: [
|
// sh 'make tests_coverage'
|
||||||
allowMissing: false,
|
// // publish html
|
||||||
alwaysLinkToLastBuild: false,
|
// publishHTML target: [
|
||||||
keepAll: true,
|
// allowMissing: false,
|
||||||
reportDir: 'build/posix_sitl_default/coverage-html',
|
// alwaysLinkToLastBuild: false,
|
||||||
reportFiles: '*',
|
// keepAll: true,
|
||||||
reportName: 'Coverage Report'
|
// reportDir: 'build/posix_sitl_default/coverage-html',
|
||||||
]
|
// reportFiles: '*',
|
||||||
}
|
// reportName: 'Coverage Report'
|
||||||
}
|
// ]
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Generate Metadata') {
|
stage('Generate Metadata') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
@@ -192,6 +202,7 @@ pipeline {
|
|||||||
archive 'modules/*.md'
|
archive 'modules/*.md'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('S3 Upload') {
|
stage('S3 Upload') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
@@ -205,5 +216,6 @@ pipeline {
|
|||||||
sh 'echo "uploading to S3"'
|
sh 'echo "uploading to S3"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user