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
Feat: Allow use of newer JDKs for Sonar scans
[releng/global-jjb.git]
/
shell
/
openstack-protect-in-use-images.sh
diff --git
a/shell/openstack-protect-in-use-images.sh
b/shell/openstack-protect-in-use-images.sh
index
e229906
..
468ea0d
100644
(file)
--- a/
shell/openstack-protect-in-use-images.sh
+++ b/
shell/openstack-protect-in-use-images.sh
@@
-23,16
+23,16
@@
images=()
while read -r -d $'\n' ; do
images+=("$REPLY")
done < <(grep -r IMAGE_NAME --include \*.cfg jenkins-config \
while read -r -d $'\n' ; do
images+=("$REPLY")
done < <(grep -r IMAGE_NAME --include \*.cfg jenkins-config \
- | awk -F'=' '{print $2}' \
- | sort -u)
+
| awk -F'=' '{print $2}' \
+
| sort -u)
jjbimages=()
while read -r -d $'\n' ; do
jjbimages+=("$REPLY")
done < <(grep -r 'ZZCI - ' --include \*.yaml jjb \
jjbimages=()
while read -r -d $'\n' ; do
jjbimages+=("$REPLY")
done < <(grep -r 'ZZCI - ' --include \*.yaml jjb \
- | awk -F": " '{print $3}' \
- | sed -e "s:'::;s:'$::;/^$/d" -e 's/^"//' -e 's/"$//' \
- | sort -u)
+
| awk -F": " '{print $3}' \
+
| sed -e "s:'::;s:'$::;/^$/d" -e 's/^"//' -e 's/"$//' \
+
| sort -u)
if ! [[ ${#images[@]} -eq 0 ]]; then
echo "INFO: There are images to protect defined in jenkins-config."
if ! [[ ${#images[@]} -eq 0 ]]; then
echo "INFO: There are images to protect defined in jenkins-config."