From 61ba5087c80b68f2f5dc9cfbda2c62dbf5b2104f Mon Sep 17 00:00:00 2001 From: Yuxiang Zhu Date: Oct 25 2018 06:03:24 +0000 Subject: CI/CD: Adjust timeout for integration tests 5 min to wait for an integration test complete is too tight according to recent build history. Let's increase it to 20 min. --- diff --git a/openshift/pipelines/templates/waiverdb-dev.Jenkinsfile b/openshift/pipelines/templates/waiverdb-dev.Jenkinsfile index d079f1f..95a779b 100644 --- a/openshift/pipelines/templates/waiverdb-dev.Jenkinsfile +++ b/openshift/pipelines/templates/waiverdb-dev.Jenkinsfile @@ -292,18 +292,12 @@ pipeline { '-e', "WAIVERDB_GIT_REPO=${params.WAIVERDB_GIT_REPO}", '-e', "WAIVERDB_GIT_REF=${params.WAIVERDB_GIT_REF}", ) - timeout(5) { // 5 min + echo 'Waiting for the integration test result...' + timeout(time: 20) { // 20 min buildSelector.watch { return !(it.object().status.phase in ["New", "Pending", "Unknown"]) } - } - echo 'Following functional test logs...' - // This function sometimes hangs infinitely. Not sure it is a problem of OpenShift Jenkins Client plugin or OpenShift. - timeout(time: 15) { buildSelector.logs('-f') - } - echo 'Waiting for the integration test to be fully stopped...' - timeout(5) { // 5 min buildSelector.watch { return it.object().status.phase != "Running" }