Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactor: Simplify and improve readability
[releng/global-jjb.git]
/
shell
/
jenkins-sandbox-cleanup.sh
diff --git
a/shell/jenkins-sandbox-cleanup.sh
b/shell/jenkins-sandbox-cleanup.sh
index
3cdda27
..
90dbb68
100644
(file)
--- 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
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
# Recreate the All default view.
cat << 'EOF' > all-view.yaml