Merge "Add a prefix variable to defaults as blank"
[releng/builder.git] / jjb / opendaylight-infra-update-image-list.sh
index c0db2dfe774080193d2327c3e7d1e00f96216819..20ceb396e55727f1e7ed0ccf1d6bffaae677659d 100644 (file)
@@ -24,8 +24,12 @@ EOF
 # Blank line before EOF is on purpose to ensure there is spacing.
 
 IFS=$'\n'
-IMAGES=($(openstack image list --public -f value -c Name))
+# We purposely want globbing here to build images list
+# shellcheck disable=SC2207
+IMAGES=($(openstack image list --long -f value -c Name -c Protected \
+    | grep 'ZZCI.*True' | sed 's/ True//'))
 for i in "${IMAGES[@]}"; do
+    echo "Adding image $i"
     echo "* $i" >> "$WORKSPACE/docs/cloud-images.rst"
 done