ci: add timeouts per each stage
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
678331de28
commit
613d5db7a4
|
@ -88,7 +88,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Download') {
|
stage('Download') {
|
||||||
when { expression { params.BUILD_SOURCE.startsWith('http') } }
|
when { expression { params.BUILD_SOURCE.startsWith('http') } }
|
||||||
steps { script {
|
steps { timeout(5) { script {
|
||||||
sh 'mkdir -p ./tmp/pkg/'
|
sh 'mkdir -p ./tmp/pkg/'
|
||||||
fileOperations([
|
fileOperations([
|
||||||
fileDownloadOperation(
|
fileDownloadOperation(
|
||||||
|
@ -99,30 +99,30 @@ pipeline {
|
||||||
password: '',
|
password: '',
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
} }
|
} } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Copy') {
|
stage('Copy') {
|
||||||
when { expression { ! params.BUILD_SOURCE.startsWith('http') } }
|
when { expression { ! params.BUILD_SOURCE.startsWith('http') } }
|
||||||
steps { script {
|
steps { timeout(5) { script {
|
||||||
copyArtifacts(
|
copyArtifacts(
|
||||||
projectName: params.BUILD_SOURCE,
|
projectName: params.BUILD_SOURCE,
|
||||||
filter: 'pkg/*-x86_64.tar.gz',
|
filter: 'pkg/*-x86_64.tar.gz',
|
||||||
selector: lastWithArtifacts(),
|
selector: lastWithArtifacts(),
|
||||||
target: './tmp'
|
target: './tmp'
|
||||||
)
|
)
|
||||||
} }
|
} } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Unpack') {
|
stage('Unpack') {
|
||||||
steps { script {
|
steps { timeout(5) script {
|
||||||
sh "tar -zxvf '${utils.findFile('tmp/pkg/*tar.gz')}' -C './tmp'"
|
sh "tar -zxvf '${utils.findFile('tmp/pkg/*tar.gz')}' -C './tmp'"
|
||||||
env.APP_DIR = utils.findFile('tmp/*.AppImage')
|
env.APP_DIR = utils.findFile('tmp/*.AppImage')
|
||||||
} }
|
} } }
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps { script {
|
steps { timeout(90) { script {
|
||||||
def flags = []
|
def flags = []
|
||||||
if (params.TEST_NAME) { flags.add("-k=${params.TEST_NAME}") }
|
if (params.TEST_NAME) { flags.add("-k=${params.TEST_NAME}") }
|
||||||
if (params.TEST_SCOPE) { flags.add("-m=${params.TEST_SCOPE}") }
|
if (params.TEST_SCOPE) { flags.add("-m=${params.TEST_SCOPE}") }
|
||||||
|
@ -149,7 +149,7 @@ pipeline {
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} }
|
} } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
|
Loading…
Reference in New Issue