Jenkins: Abort module tests after 12 hours
This commit is contained in:
parent
87549b951a
commit
115bf04c0b
1 changed files with 9 additions and 7 deletions
16
tests/modules/Jenkinsfile
vendored
16
tests/modules/Jenkinsfile
vendored
|
@ -21,13 +21,15 @@ def runTests() {
|
||||||
sh "pip install --user -e .[css,dev]"
|
sh "pip install --user -e .[css,dev]"
|
||||||
}
|
}
|
||||||
stage ('Run tests') {
|
stage ('Run tests') {
|
||||||
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
timeout(time: 12, unit: 'HOURS') {
|
||||||
sh '''
|
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
||||||
TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \
|
sh '''
|
||||||
--alluredir=allure-data \
|
TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \
|
||||||
--tb=short -n10 --junitxml=junit.xml \
|
--alluredir=allure-data \
|
||||||
tests/modules/check_comics.py || true
|
--tb=short -n10 --junitxml=junit.xml \
|
||||||
'''
|
tests/modules/check_comics.py || true
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Report') {
|
stage('Report') {
|
||||||
|
|
Loading…
Reference in a new issue