Skip to content

Commit 3db36a1

Browse files
committed
jenkins: lock simulator
1 parent e7cad55 commit 3db36a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ pipeline {
8989
sh "git config --global --add safe.directory ${WORKSPACE}"
9090
sh "git lfs pull"
9191
sh "${WORKSPACE}/tools/sim/build_container.sh"
92-
sh "DETACH=1 ${WORKSPACE}/tools/sim/start_carla.sh"
93-
sh "${WORKSPACE}/tools/sim/start_openpilot_docker.sh"
92+
lock(resource: "", label: "simulator", inversePrecedence: true, quantity: 1) {
93+
sh "DETACH=1 ${WORKSPACE}/tools/sim/start_carla.sh"
94+
sh "${WORKSPACE}/tools/sim/start_openpilot_docker.sh"
95+
}
9496
}
9597

9698
post {

0 commit comments

Comments
 (0)