X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjenkins-sandbox-cleanup.sh;h=dc69e2b7ad9eab184eda277d0f250e78d3b9915b;hb=04853ec1c27444d494afae28e8c181b711280f4b;hp=1dd520a8a94430e1b13b7b1e7dabb9671e66ebf8;hpb=5f3d9b0c8343ee4dce1ed0d0c39f8677799b0c74;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-sandbox-cleanup.sh b/shell/jenkins-sandbox-cleanup.sh index 1dd520a8..dc69e2b7 100644 --- a/shell/jenkins-sandbox-cleanup.sh +++ b/shell/jenkins-sandbox-cleanup.sh @@ -16,7 +16,8 @@ set -euf -o pipefail # shellcheck disable=SC1090 . ~/lf-env.sh -lf-activate-venv --python python3 --venv-file /tmp/.jjb_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 --python python3 --venv-file /tmp/.jjb_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