From 9bbd8bf9729d82dce060cacbb28e684d59ef1b4a Mon Sep 17 00:00:00 2001 From: Tim Johnson Date: Thu, 19 Dec 2019 11:13:30 -0800 Subject: [PATCH] Fix broken pipe in jenkins-sandbox-cleanup script Issue: RELENG-2640 Change-Id: I67b66146838e816b6da3e9846205ea68a7ce965c Signed-off-by: Tim Johnson --- shell/jenkins-sandbox-cleanup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.16.6