jenkins: move simulator build into lock

old-commit-hash: add335d9e67f24a3090e09d39d4267b8f5620ff1
This commit is contained in:
Adeeb Shihadeh
2022-06-18 19:01:42 -07:00
parent 1db89343ef
commit 248dd28c7d

2
Jenkinsfile vendored
View File

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