From daaa6fcc3c75c74cbb90e97c565099a94123994c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 9 Aug 2023 00:21:13 -0700 Subject: [PATCH] matrix can't be in parallel --- Jenkinsfile | 58 +++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 39180a8069..45d2074833 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -111,6 +111,36 @@ pipeline { } } + stage('large test models') { + matrix { + agent { dockerfile { filename 'Dockerfile.openpilot_base'; args '--user=root' } } + axes { + axis { + name 'JOB_ID' + values 0, 1, 2, 3, 4 + } + } + + stages { + stage('start large test models') { + steps { + sh "git config --global --add safe.directory '*'" + sh "git submodule update --init --depth=1 --recursive" + sh "scons -j42" + sh "cd selfdrive/car/tests && PYTHONPATH='${WORKSPACE}' JOB_ID=${JOB_ID} NUM_JOBS=5 INTERNAL_SEG_LIST='selfdrive/car/tests/test_models_segs.txt' ./test_models.py" + } + } + } + } + + post { + always { + sh "rm -rf ${WORKSPACE}/* || true" + sh "rm -rf .* || true" + } + } + } + parallel { /* @@ -143,35 +173,7 @@ pipeline { } */ - stage('large test models') { - matrix { - agent { dockerfile { filename 'Dockerfile.openpilot_base'; args '--user=root' } } - axes { - axis { - name 'JOB_ID' - values 0, 1, 2, 3, 4 - } - } - - stages { - stage('start large test models') { - steps { - sh "git config --global --add safe.directory '*'" - sh "git submodule update --init --depth=1 --recursive" - sh "scons -j42" - sh "cd selfdrive/car/tests && PYTHONPATH='${WORKSPACE}' JOB_ID=${JOB_ID} NUM_JOBS=5 INTERNAL_SEG_LIST='selfdrive/car/tests/test_models_segs.txt' ./test_models.py" - } - } - } - } - post { - always { - sh "rm -rf ${WORKSPACE}/* || true" - sh "rm -rf .* || true" - } - } - } // stage('scons build test') { // agent {