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
Revert "Add step to verify stage repo is closed"
[releng/global-jjb.git]
/
shell
/
update-cloud-images.sh
diff --git
a/shell/update-cloud-images.sh
b/shell/update-cloud-images.sh
index
6b39c7c
..
d3cd18f
100644
(file)
--- a/
shell/update-cloud-images.sh
+++ b/
shell/update-cloud-images.sh
@@
-44,6
+44,9
@@
while read -r line ; do
# var is unset and update all images on Jenkins to the latest.
if [[ ${NEW_IMAGE_NAME} != all ]]; then
new_image=${NEW_IMAGE_NAME}
# var is unset and update all images on Jenkins to the latest.
if [[ ${NEW_IMAGE_NAME} != all ]]; then
new_image=${NEW_IMAGE_NAME}
+ new_image_type="${NEW_IMAGE_NAME% -*}"
+ # get the $new_image_type to check the image type is being compared
+ [[ ${new_image_type} =~ ${image_type} ]] && continue
else
new_image=$(openstack image list --long -f value -c Name -c Protected \
| grep "${image_type}.*False" | tail -n-1 | sed 's/ False//')
else
new_image=$(openstack image list --long -f value -c Name -c Protected \
| grep "${image_type}.*False" | tail -n-1 | sed 's/ False//')