From a1b57e5725417d3c2f639f8edfc0c889b84b6753 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 9 Aug 2023 00:10:42 -0700 Subject: [PATCH] add matrix --- Jenkinsfile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2dc5db3cec..e8160202fa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -144,12 +144,19 @@ pipeline { */ stage('large test models') { - agent { dockerfile { filename 'Dockerfile.openpilot_base'; args '--user=root' } } - 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}' INTERNAL_SEG_LIST='selfdrive/car/tests/test_models_segs.txt' ./test_models.py" + matrix { + agent { dockerfile { filename 'Dockerfile.openpilot_base'; args '--user=root' } } + axes { + name 'JOB_ID' + values 0 1 2 3 4 + } + + 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 {