Jenkins: Abort module tests after 12 hours

This commit is contained in:
Tobias Gruetzmacher 2021-03-19 14:16:04 +01:00
parent 87549b951a
commit 115bf04c0b

View file

@ -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') {