jenkins/kola: use httpS URL for PXE boot

Follow-up of:
* https://github.com/flatcar-linux/mantle/pull/288
* https://github.com/flatcar-linux/Flatcar/issues/527

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
Mathieu Tortuyaux 2022-02-09 10:46:42 +01:00
parent c9ddda260b
commit bd30be56ee
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -9,10 +9,6 @@ timeout=8h
set -o pipefail set -o pipefail
# Construct the URLs of the image to be used during tests. # Construct the URLs of the image to be used during tests.
# KERNEL/CPIO_URL will be used by iPXE and so it will use http instead of https to
# make the boot process faster (except for signed URLs).
# IMAGE_URL is downloaded through Flatcar and can do SSL just fine, so that one
# can use https:// without a significant delay
if [[ "${DOWNLOAD_ROOT}" == gs://flatcar-jenkins-private/* ]]; then if [[ "${DOWNLOAD_ROOT}" == gs://flatcar-jenkins-private/* ]]; then
echo "Fetching google/cloud-sdk" echo "Fetching google/cloud-sdk"
docker pull google/cloud-sdk > /dev/null docker pull google/cloud-sdk > /dev/null
@ -23,8 +19,8 @@ if [[ "${DOWNLOAD_ROOT}" == gs://flatcar-jenkins-private/* ]]; then
else else
BASE_PATH="bucket.release.flatcar-linux.net/$(echo $DOWNLOAD_ROOT | sed 's|gs://||g')/boards/${BOARD}/${FLATCAR_VERSION}" BASE_PATH="bucket.release.flatcar-linux.net/$(echo $DOWNLOAD_ROOT | sed 's|gs://||g')/boards/${BOARD}/${FLATCAR_VERSION}"
IMAGE_URL="https://${BASE_PATH}/flatcar_production_packet_image.bin.bz2" IMAGE_URL="https://${BASE_PATH}/flatcar_production_packet_image.bin.bz2"
KERNEL_URL="http://${BASE_PATH}/flatcar_production_pxe.vmlinuz" KERNEL_URL="https://${BASE_PATH}/flatcar_production_pxe.vmlinuz"
CPIO_URL="http://${BASE_PATH}/flatcar_production_pxe_image.cpio.gz" CPIO_URL="https://${BASE_PATH}/flatcar_production_pxe_image.cpio.gz"
fi fi
if [[ "${KOLA_TESTS}" == "" ]]; then if [[ "${KOLA_TESTS}" == "" ]]; then