matrix can't be in parallel

pull/29291/head
Shane Smiskol 2 years ago
parent df554b6a33
commit daaa6fcc3c
  1. 58
      Jenkinsfile

58
Jenkinsfile vendored

@ -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 { 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') { // stage('scons build test') {
// agent { // agent {

Loading…
Cancel
Save