From: Frank Brehm Date: Thu, 7 Feb 2019 11:19:51 +0000 (+0100) Subject: Applying new timeout settings for create job in .gitlab-ci.yml X-Git-Tag: 1.1.0^2~16 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=fe37db75016d8c1a5c5c655de96522937b3f5897;p=pixelpark%2Fcreate-vmware-tpl.git Applying new timeout settings for create job in .gitlab-ci.yml --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d72d8f..c0165a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,12 +27,13 @@ variables: VM_RAM_MB: 4096 VM_NETWORK: '192.168.88.0_23' VM_MAC_ADDRESS: '00:16:3e:54:ab:2b' + MAX_WAIT_GENERAL: 3 + MAX_WAIT_SHUTDOWN: 120 MAX_WAIT_FOR_FINISH_INSTALL: 3600 .template_job: &job_definition before_script: - - rm -rf venv - - virtualenv --python=python3.6 venv + - if [ ! -d venv ] ; then virtualenv --python=python3.6 venv; else true; fi - source venv/bin/activate - pip install --upgrade pip - pip install --upgrade --upgrade-strategy eager --requirement python_fb_tools/requirements.txt @@ -80,6 +81,7 @@ Deploy OEL7 template image: - hostname -f - whoami - pwd + - echo; echo "Environment:"; env; echo - rm -fv etc/create.ini - 'echo "[vSphere]" > etc/create.ini' - 'echo "host = ${VSPHERE_HOST}" >> etc/create.ini' @@ -101,6 +103,10 @@ Deploy OEL7 template image: - 'echo "ram_mb = ${VM_RAM_MB}" >> etc/create.ini' - 'echo "network = ${VM_NETWORK}" >> etc/create.ini' - 'echo "mac_address = ${VM_MAC_ADDRESS}" >> etc/create.ini' + - 'echo "" >> etc/create.ini' + - 'echo "[Timeouts]" >> etc/create.ini' + - 'echo "max_wait_for_general = ${MAX_WAIT_GENERAL}" >> etc/create.ini' + - 'echo "max_wait_for_shutdown_vm = ${MAX_WAIT_SHUTDOWN}" >> etc/create.ini' - 'echo "max_wait_for_finish_install = ${MAX_WAIT_FOR_FINISH_INSTALL}" >> etc/create.ini' - 'echo "" >> etc/create.ini' - 'echo "; vim: filetype=dosini" >> etc/create.ini'