X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjenkins-sandbox-cleanup.sh;h=1dd520a8a94430e1b13b7b1e7dabb9671e66ebf8;hb=refs%2Ftags%2Fv0.82.3;hp=3cdda27abe01151a87d79adff8d145dfe6c1e6a3;hpb=f13d7760a7d4f99368359d89f75d8188063b8a36;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-sandbox-cleanup.sh b/shell/jenkins-sandbox-cleanup.sh index 3cdda27a..1dd520a8 100644 --- a/shell/jenkins-sandbox-cleanup.sh +++ b/shell/jenkins-sandbox-cleanup.sh @@ -14,11 +14,12 @@ 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