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
2
tests/modules/Jenkinsfile
vendored
2
tests/modules/Jenkinsfile
vendored
|
@ -21,6 +21,7 @@ def runTests() {
|
||||||
sh "pip install --user -e .[css,dev]"
|
sh "pip install --user -e .[css,dev]"
|
||||||
}
|
}
|
||||||
stage ('Run tests') {
|
stage ('Run tests') {
|
||||||
|
timeout(time: 12, unit: 'HOURS') {
|
||||||
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
||||||
sh '''
|
sh '''
|
||||||
TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \
|
TESTALL=1 py.test -v --cov=dosagelib --cov-report xml \
|
||||||
|
@ -30,6 +31,7 @@ def runTests() {
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Report') {
|
stage('Report') {
|
||||||
junit 'junit.xml'
|
junit 'junit.xml'
|
||||||
publishCoverage calculateDiffForChangeRequests: true,
|
publishCoverage calculateDiffForChangeRequests: true,
|
||||||
|
|
Loading…
Reference in a new issue