Add timeouts to deployment and test jobs
Change-Id: I00510aa2199baa5efdfbfa05d1ece4b9478e9a2a
diff --git a/jobs/pipelines/swarm-testrail-report.groovy b/jobs/pipelines/swarm-testrail-report.groovy
index 2d2f993..38a7968 100644
--- a/jobs/pipelines/swarm-testrail-report.groovy
+++ b/jobs/pipelines/swarm-testrail-report.groovy
@@ -26,6 +26,7 @@
currentBuild.description = "${PARENT_NODE_NAME}:${ENV_NAME}"
+timeout(time: 2, unit: 'HOURS') {
node ("${PARENT_NODE_NAME}") {
if (! fileExists("${PARENT_WORKSPACE}")) {
error "'PARENT_WORKSPACE' contains path to non-existing directory ${PARENT_WORKSPACE} on the node '${PARENT_NODE_NAME}'."
@@ -225,3 +226,4 @@
}
}
}
+} // timeout