Skip to content

Commit

Permalink
Jenkins: select devices randomly (commaai#31274)
Browse files Browse the repository at this point in the history
radnomly select devices
  • Loading branch information
jnewb1 authored Feb 2, 2024
1 parent 33c93cc commit 08d9681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def deviceStage(String stageName, String deviceType, List extra_env, def steps)
def branch = env.BRANCH_NAME ?: 'master';

docker.image('ghcr.io/commaai/alpine-ssh').inside('--user=root') {
lock(resource: "", label: deviceType, inversePrecedence: true, variable: 'device_ip', quantity: 1) {
lock(resource: "", label: deviceType, inversePrecedence: true, variable: 'device_ip', quantity: 1, resourceSelectStrategy: 'random') {
timeout(time: 20, unit: 'MINUTES') {
retry (3) {
device(device_ip, "git checkout", extra + "\n" + readFile("selfdrive/test/setup_device_ci.sh"))
Expand Down

0 comments on commit 08d9681

Please sign in to comment.