Merge pull request #269 from flatcar-linux/tormath1/fix-gce

kola/gce: shrink hostname to be lower than 63 char
This commit is contained in:
Mathieu Tortuyaux 2022-04-06 16:46:01 +02:00 committed by GitHub
commit 146e8915e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,9 @@ if [[ "${OFFER}" != "basic" ]]; then
OEM_SUFFIX="_${OFFER}" OEM_SUFFIX="_${OFFER}"
fi fi
# Create a name that includes the OEM_SUFFIX, # Create a name that includes the OFFER,
# but replace _ with -, as gcloud doesn't like it otherwise. # but replace _ with -, as gcloud doesn't like it otherwise.
OEMNAME="jenkins-${JOB_NAME##*/}${OEM_SUFFIX}-${BUILD_NUMBER}" OEMNAME="${OFFER}-${BUILD_NUMBER}"
NAME=${OEMNAME//_/-} NAME=${OEMNAME//_/-}
bin/ore gcloud create-image \ bin/ore gcloud create-image \