Save service image URL properly
Put the image name in a file for retrieval by jobs that need it so they don't have to play (buggy) tricks with git to get it. Also ensure that debootstrap is installed. Depends-on: https://review.openstack.org/623551 Closes-bug: #1807969 Change-Id: I6dfeb5fb236579aa1755c6806f9ffc397690fba6
This commit is contained in:
@@ -160,16 +160,16 @@ is_installed() {
|
|||||||
need_required_packages() {
|
need_required_packages() {
|
||||||
case "$platform" in
|
case "$platform" in
|
||||||
"ubuntu")
|
"ubuntu")
|
||||||
package_list="qemu kpartx"
|
package_list="qemu kpartx debootstrap"
|
||||||
;;
|
;;
|
||||||
"fedora")
|
"fedora")
|
||||||
package_list="qemu-img kpartx"
|
package_list="qemu-img kpartx debootstrap"
|
||||||
;;
|
;;
|
||||||
"opensuse")
|
"opensuse")
|
||||||
package_list="qemu kpartx"
|
package_list="qemu kpartx debootstrap"
|
||||||
;;
|
;;
|
||||||
"rhel" | "centos")
|
"rhel" | "centos")
|
||||||
package_list="qemu-kvm qemu-img kpartx"
|
package_list="qemu-kvm qemu-img kpartx debootstrap"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
err "Unknown platform '$platform' for the package list.\nAborting"
|
err "Unknown platform '$platform' for the package list.\nAborting"
|
||||||
|
|||||||
@@ -25,3 +25,5 @@ if [[ $PUT_IMAGE_TO_LOCAL_WEBSERVER != [Ff][Aa][Ll][Ss][Ee] ]]; then
|
|||||||
echo "Image with name '$image_name' is available now at \
|
echo "Image with name '$image_name' is available now at \
|
||||||
http://localhost:80/public_html/$image_name"
|
http://localhost:80/public_html/$image_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo $image_name > ./IMAGE_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user