X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fjenkins-sandbox-cleanup.sh;h=dc69e2b7ad9eab184eda277d0f250e78d3b9915b;hb=refs%2Fchanges%2F50%2F72650%2F2;hp=90dbb684097269b2b961ee8616868a1d5f5db676;hpb=9bbd8bf9729d82dce060cacbb28e684d59ef1b4a;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-sandbox-cleanup.sh b/shell/jenkins-sandbox-cleanup.sh index 90dbb684..dc69e2b7 100644 --- a/shell/jenkins-sandbox-cleanup.sh +++ b/shell/jenkins-sandbox-cleanup.sh @@ -14,9 +14,10 @@ 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 # jenkins-jobs does not always open 'stdin' which may cause 'yes' to fail (yes || true) | jenkins-jobs -s sandbox delete-all @@ -24,7 +25,7 @@ lf-activate-venv jenkins-job-builder # Recreate the All default view. cat << 'EOF' > all-view.yaml - view: - name: All + name: all view-type: all EOF jenkins-jobs -s sandbox update -v all-view.yaml