mirror of
https://github.com/status-im/desktop-qa-automation.git
synced 2025-02-24 01:58:22 +00:00
ci: add timeouts per each stage
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
ce2e30763b
commit
8bf6ac50e2
16
ci/Jenkinsfile
vendored
16
ci/Jenkinsfile
vendored
@ -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…
x
Reference in New Issue
Block a user