jenkins: lock simulator

This commit is contained in:
Adeeb Shihadeh 2022-06-12 21:59:58 -07:00
parent e7cad559a6
commit 3db36a1958
1 changed files with 4 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -89,8 +89,10 @@ pipeline {
sh "git config --global --add safe.directory ${WORKSPACE}"
sh "git lfs pull"
sh "${WORKSPACE}/tools/sim/build_container.sh"
sh "DETACH=1 ${WORKSPACE}/tools/sim/start_carla.sh"
sh "${WORKSPACE}/tools/sim/start_openpilot_docker.sh"
lock(resource: "", label: "simulator", inversePrecedence: true, quantity: 1) {
sh "DETACH=1 ${WORKSPACE}/tools/sim/start_carla.sh"
sh "${WORKSPACE}/tools/sim/start_openpilot_docker.sh"
}
}
post {