From: Tim Johnson Date: Thu, 19 Dec 2019 19:13:30 +0000 (-0800) Subject: Fix broken pipe in jenkins-sandbox-cleanup script X-Git-Tag: v0.49.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=9bbd8bf9729d82dce060cacbb28e684d59ef1b4a;p=releng%2Fglobal-jjb.git Fix broken pipe in jenkins-sandbox-cleanup script Issue: RELENG-2640 Change-Id: I67b66146838e816b6da3e9846205ea68a7ce965c Signed-off-by: Tim Johnson --- diff --git a/shell/jenkins-sandbox-cleanup.sh b/shell/jenkins-sandbox-cleanup.sh index 3cdda27a..90dbb684 100644 --- a/shell/jenkins-sandbox-cleanup.sh +++ b/shell/jenkins-sandbox-cleanup.sh @@ -18,7 +18,8 @@ source ~/lf-env.sh lf-activate-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