Add timeout to linux unittest

This commit is contained in:
/dev/root 2019-03-12 20:15:24 +01:00
parent 4d53b29fec
commit 8986b181a6

20
Jenkinsfile vendored
View File

@ -268,15 +268,17 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
} }
executions["$testName on Linux"] = { executions["$testName on Linux"] = {
node("docker && linux && amd64") { node("docker && linux && amd64") {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) { timeout(time: 10, unit: "MINUTES") {
def image = null wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
dir("src") { def image = null
unstash "jenkins-files" dir("src") {
image = docker.build("github.com/IW4x/iw4x-client-testing-wine32", "--rm --force-rm -f jenkins/wine32.Dockerfile jenkins") unstash "jenkins-files"
deleteDir() image = docker.build("github.com/IW4x/iw4x-client-testing-wine32", "--rm --force-rm -f jenkins/wine32.Dockerfile jenkins")
} deleteDir()
image.inside { }
doUnitTests(test.StashName) image.inside {
doUnitTests(test.StashName)
}
} }
} }
} }