tag created vmare VMs
tag VMs with 'gitlba-ci-test' images so they can get removed with cloud cleaner
This commit is contained in:
parent
79fa253d69
commit
b8f6ea4570
1 changed files with 7 additions and 0 deletions
|
|
@ -383,6 +383,13 @@ function verifyInVSphere() {
|
|||
-on=false \
|
||||
"${VSPHERE_VM_NAME}"
|
||||
|
||||
# tagging vm as testing object
|
||||
$GOVC_CMD tags.attach \
|
||||
-u "${GOVMOMI_USERNAME}":"${GOVMOMI_PASSWORD}"@"${GOVMOMI_URL}" \
|
||||
-k=true \
|
||||
-c "osbuild-composer testing" gitlab-ci-test \
|
||||
"/${GOVMOMI_DATACENTER}/vm/${GOVMOMI_FOLDER}/${VSPHERE_VM_NAME}"
|
||||
|
||||
# upload ISO, create CDROM device and insert the ISO in it
|
||||
greenprint "💿 ⬆️ Uploading the cloud-init user-data ISO to VSphere"
|
||||
VSPHERE_CIDATA_ISO_PATH="${VSPHERE_VM_NAME}/cidata.iso"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue