Don't lock Jenkins nodes for too long if possible (#desktop).

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Igor Mandrigin 2018-08-16 15:35:31 +02:00
parent e8ab892e95
commit 24db421fea
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 7 additions and 8 deletions

View File

@ -94,15 +94,15 @@ def buildClojureScript() {
"""
}
node() {
gitHubNotify("Desktop Jenkins build job started at ${env.BUILD_URL}")
timeout(90) {
node() {
gitHubNotify("Desktop Jenkins build job started at ${env.BUILD_URL}")
}
try {
parallel(
'MacOS build': {
timeout(90) {
node('macos1') {
load "$HOME/env.groovy"
try {
stage('Git & Deps') {
slackNotify('MacOS build started.')
@ -158,10 +158,8 @@ node() {
cleanupBuild()
}
}
}
},
'Linux build': {
timeout(90) {
node ('linux-01') {
def qt_bin = '/opt/qt59/bin'
@ -252,9 +250,10 @@ node() {
}
}
}
}
)
} catch (e) {
gitHubNotify("Desktop Jenkins build was failed or cancelled. More details at ${env.BUILD_URL}")
node() {
gitHubNotify("Desktop Jenkins build was failed or cancelled. More details at ${env.BUILD_URL}")
}
}
}