Fix timeout processing in CICD jobs
- default timeout increased from 1800 to 2400 sec because 'core'
component deployment takes more than 30 min now
- print the timeout message in run_jenkins_job.py to stdout along
with stderr
- do not fail get_jenkins_job_stages.py if info['result'] contains
'None' in cases when the job is failed by timeout. Wait for few
seconds, then report the workflow stages 'as is':
Create infrastructure: SUCCESS
Install core infrastructure: SUCCESS
Install infra: IN_PROGRESS
Change-Id: I2ca592a8f5069bb38ec7659f15eb72e4bfba1722
Closes-Bug:#PROD-23815
diff --git a/tcp_tests/managers/jenkins/client.py b/tcp_tests/managers/jenkins/client.py
index fbd5c43..afc8900 100644
--- a/tcp_tests/managers/jenkins/client.py
+++ b/tcp_tests/managers/jenkins/client.py
@@ -143,8 +143,8 @@
building,
timeout=timeout,
interval=interval,
- timeout_msg='Timeout waiting, job {0} are not finished "{1}" build'
- ' still'.format(name, build_id))
+ timeout_msg=('Timeout waiting the job {0}:{1} in {2} sec.'
+ .format(name, build_id, timeout)))
def get_build_output(self, name, build_id):
return self.__client.get_build_console_output(name, build_id)