From 2fa1702c71ee454e9757a01ad0e1a6777c14eb75 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 6 Dec 2017 19:25:15 -0500 Subject: [PATCH] Jenkins temporarily disable coverage and clang-tidy - check format first to reduce build utilization --- Jenkinsfile | 100 +++++++++++++++++++++++++++++----------------------- 1 file changed, 56 insertions(+), 44 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 76ab803995..6fafa28ab7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,19 @@ pipeline { timestamps() } 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') { steps { script { @@ -116,31 +129,24 @@ pipeline { } } } + stage('Test') { parallel { - stage('check_format') { - 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('clang-tidy') { - 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' - } - } + + // temporarily disabled until build resources are available + //stage('clang-tidy') { + // 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') { agent { docker { @@ -154,29 +160,33 @@ pipeline { junit 'build/posix_sitl_default/JUnitTestResults.xml' } } - stage('tests coverage') { - 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 clean' - sh 'make tests_coverage' - // publish html - publishHTML target: [ - allowMissing: false, - alwaysLinkToLastBuild: false, - keepAll: true, - reportDir: 'build/posix_sitl_default/coverage-html', - reportFiles: '*', - reportName: 'Coverage Report' - ] - } - } + + // temporarily disabled until stable + //stage('tests coverage') { + // 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 clean' + // sh 'make tests_coverage' + // // publish html + // publishHTML target: [ + // allowMissing: false, + // alwaysLinkToLastBuild: false, + // keepAll: true, + // reportDir: 'build/posix_sitl_default/coverage-html', + // reportFiles: '*', + // reportName: 'Coverage Report' + // ] + // } + //} + } } + stage('Generate Metadata') { agent { docker { @@ -192,6 +202,7 @@ pipeline { archive 'modules/*.md' } } + stage('S3 Upload') { agent { docker { @@ -205,5 +216,6 @@ pipeline { sh 'echo "uploading to S3"' } } + } }