From 115bf04c0b9bec748fef015f3c4fdb35e8e3601d Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 19 Mar 2021 14:16:04 +0100 Subject: [PATCH] Jenkins: Abort module tests after 12 hours --- tests/modules/Jenkinsfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/modules/Jenkinsfile b/tests/modules/Jenkinsfile index dd50feb6c..3fd32939a 100644 --- a/tests/modules/Jenkinsfile +++ b/tests/modules/Jenkinsfile @@ -21,13 +21,15 @@ def runTests() { sh "pip install --user -e .[css,dev]" } stage ('Run tests') { - withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) { - sh ''' - TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \ - --alluredir=allure-data \ - --tb=short -n10 --junitxml=junit.xml \ - tests/modules/check_comics.py || true - ''' + timeout(time: 12, unit: 'HOURS') { + withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) { + sh ''' + TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \ + --alluredir=allure-data \ + --tb=short -n10 --junitxml=junit.xml \ + tests/modules/check_comics.py || true + ''' + } } } stage('Report') {