2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2017 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
14 cat > "$WORKSPACE/docs/cloud-images.rst" << EOF
15 Following are the list of published images available to Jenkins jobs.
18 # Blank line before EOF is on purpose to ensure there is spacing.
21 # We purposely want globbing here to build images list
22 # shellcheck disable=SC2207
23 IMAGES=($(openstack image list --long -f value -c Name -c Protected \
24 | grep 'ZZCI.*True' | sed 's/ True//'))
25 for i in "${IMAGES[@]}"; do
26 echo "Adding image $i"
27 echo "* $i" >> "$WORKSPACE/docs/cloud-images.rst"
30 git add docs/cloud-images.rst