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
CI: Switch to using reuse for license checking
[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
..
10f3b29
100644
(file)
--- a/
shell/jenkins-sandbox-cleanup.sh
+++ b/
shell/jenkins-sandbox-cleanup.sh
@@
-14,11
+14,13
@@
echo "---> jenkins-sandbox-cleanup.sh"
set -euf -o pipefail
# shellcheck disable=SC1090
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
-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