From 36bc29c47571d645b718ebb98fbcaab66d14aca5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 5 Aug 2020 14:11:10 -0700 Subject: [PATCH] run all stages in parallel --- Jenkinsfile | 60 ++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 34375445af..f59f07c248 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,43 +41,43 @@ pipeline { } stages { - - stage('Release Build') { - when { - branch 'devel-staging' - } - steps { - phone_steps("eon-build", [ - ["build release2-staging and dashcam-staging", "cd release && PUSH=1 ./build_release2.sh"], - ]) - } - } - - stage('PC tests') { - agent { - dockerfile { - filename 'Dockerfile.openpilot' - additionalBuildArgs '--cache-from docker.io/commaai/openpilotci:latest' - args '--privileged --shm-size 1G' - } - } - steps { - sh 'scons -j4' - } - } - - stage('On-device Tests') { + stage('openpilot tests') { when { not { anyOf { - branch 'master-ci'; branch 'devel'; branch 'devel-staging'; branch 'release2'; branch 'release2-staging'; branch 'dashcam'; branch 'dashcam-staging' + branch 'master-ci'; branch 'devel'; branch 'release2'; branch 'release2-staging'; branch 'dashcam'; branch 'dashcam-staging' } } } - parallel { - stage('Build') { + stage('PC tests') { + agent { + dockerfile { + filename 'Dockerfile.openpilot' + additionalBuildArgs '--cache-from docker.io/commaai/openpilotci:latest' + args '--privileged --shm-size 1G' + } + } + steps { + sh 'scons -j4' + } + } + + // *** On-device Tests *** + + stage('Release Build') { + when { + branch 'devel-staging' + } + steps { + phone_steps("eon-build", [ + ["build release2-staging and dashcam-staging", "cd release && PUSH=1 ./build_release2.sh"], + ]) + } + } + + stage('Devel Build') { environment { CI_PUSH = "${env.BRANCH_NAME == 'master' ? 'master-ci' : ' '}" } @@ -109,8 +109,8 @@ pipeline { } } + } } - } }