From cf7f4bd4a481b0113bab974039dacfe4b2922714 Mon Sep 17 00:00:00 2001 From: Margarita Manterola Date: Tue, 22 Dec 2020 13:52:52 +0100 Subject: [PATCH] Add GCE Pro OEM type --- build_library/vm_image_util.sh | 7 +++++++ jenkins/formats-amd64-usr.txt | 1 + jenkins/vm.sh | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 957057dd4f..9ffd0b5f9e 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -18,6 +18,7 @@ VALID_IMG_TYPES=( digitalocean exoscale gce + gce_pro hyperv interoute iso @@ -253,6 +254,12 @@ IMG_gce_CONF_FORMAT=gce IMG_gce_OEM_PACKAGE=oem-gce IMG_gce_OEM_ACI=gce +## gce pro, image tarball +IMG_gce_pro_DISK_LAYOUT=vm +IMG_gce_pro_CONF_FORMAT=gce +IMG_gce_pro_OEM_PACKAGE=oem-gce +IMG_gce_pro_OEM_ACI=gce + ## rackspace IMG_rackspace_OEM_PACKAGE=oem-rackspace IMG_rackspace_vhd_DISK_FORMAT=vhd diff --git a/jenkins/formats-amd64-usr.txt b/jenkins/formats-amd64-usr.txt index 70f546843e..4f965a48e9 100644 --- a/jenkins/formats-amd64-usr.txt +++ b/jenkins/formats-amd64-usr.txt @@ -4,6 +4,7 @@ ami_vmdk_pro azure azure_pro gce +gce_pro iso pxe qemu diff --git a/jenkins/vm.sh b/jenkins/vm.sh index 34bdae2f61..58cb17038a 100644 --- a/jenkins/vm.sh +++ b/jenkins/vm.sh @@ -43,8 +43,10 @@ img=src/flatcar_production_image.bin [[ "${img}.bz2" -nt "${img}" ]] && enter lbunzip2 -k -f "/mnt/host/source/${img}.bz2" +# If the format variable ends with _pro it's a Flatcar Pro image and it should +# be uploaded to the private bucket. PRIVATE_UPLOAD_OPT="" -if [[ "${FORMAT}" == 'azure_pro' ]] || [[ "${FORMAT}" == 'ami_vmdk_pro' ]] +if [[ -z "${FORMAT##*_pro}" ]] then PRIVATE_UPLOAD_OPT="--private" UPLOAD_ROOT=${UPLOAD_PRIVATE_ROOT}