2 virtualenv "$WORKSPACE/.venv"
3 # shellcheck disable=SC1090
4 source "$WORKSPACE/.venv/bin/activate"
5 PYTHON="$WORKSPACE/.venv/bin/python"
6 $PYTHON -m pip install --upgrade --quiet pip
7 $PYTHON -m pip install --upgrade --quiet python-openstackclient python-heatclient
10 cat > "$WORKSPACE/docs/cloud-images.rst" << EOF
11 Following are the list of published images available to be used with Jenkins jobs.
14 # Blank line before EOF is on purpose to ensure there is spacing.
17 IMAGES=($(openstack image list --public -f value -c Name))
18 for i in "${IMAGES[@]}"; do
19 echo "* $i" >> "$WORKSPACE/docs/cloud-images.rst"
22 git add docs/cloud-images.rst