X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjenkins-sandbox-cleanup.sh;h=10f3b2919cd5b54fbf730b480d73a8da4046fe61;hb=9268e4ab2c79a5605c59865ac5dd96231de75518;hp=3cdda27abe01151a87d79adff8d145dfe6c1e6a3;hpb=e1aa69307271648dccb7d3b44530b4b39b647711;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-sandbox-cleanup.sh b/shell/jenkins-sandbox-cleanup.sh index 3cdda27a..10f3b291 100644 --- a/shell/jenkins-sandbox-cleanup.sh +++ b/shell/jenkins-sandbox-cleanup.sh @@ -14,11 +14,13 @@ echo "---> jenkins-sandbox-cleanup.sh" set -euf -o pipefail # shellcheck disable=SC1090 -source ~/lf-env.sh +. ~/lf-env.sh -lf-activate-venv jenkins-job-builder +lf-activate-venv --python python3 --venv-file /tmp/.jjb_venv \ + jenkins-job-builder -yes | jenkins-jobs -s sandbox delete-all +# jenkins-jobs does not always open 'stdin' which may cause 'yes' to fail +(yes || true) | jenkins-jobs -s sandbox delete-all # Recreate the All default view. cat << 'EOF' > all-view.yaml