From 613d5db7a4de89d7a174368ef2b393521fd399c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 24 Oct 2023 18:08:35 +0200 Subject: [PATCH] ci: add timeouts per each stage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- test/e2e/ci/Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/e2e/ci/Jenkinsfile b/test/e2e/ci/Jenkinsfile index 0bb43f2b90..143551f180 100644 --- a/test/e2e/ci/Jenkinsfile +++ b/test/e2e/ci/Jenkinsfile @@ -88,7 +88,7 @@ pipeline { stage('Download') { when { expression { params.BUILD_SOURCE.startsWith('http') } } - steps { script { + steps { timeout(5) { script { sh 'mkdir -p ./tmp/pkg/' fileOperations([ fileDownloadOperation( @@ -99,30 +99,30 @@ pipeline { password: '', ) ]) - } } + } } } } stage('Copy') { when { expression { ! params.BUILD_SOURCE.startsWith('http') } } - steps { script { + steps { timeout(5) { script { copyArtifacts( projectName: params.BUILD_SOURCE, filter: 'pkg/*-x86_64.tar.gz', selector: lastWithArtifacts(), target: './tmp' ) - } } + } } } } stage('Unpack') { - steps { script { + steps { timeout(5) script { sh "tar -zxvf '${utils.findFile('tmp/pkg/*tar.gz')}' -C './tmp'" env.APP_DIR = utils.findFile('tmp/*.AppImage') - } } + } } } } stage('Test') { - steps { script { + steps { timeout(90) { script { def flags = [] if (params.TEST_NAME) { flags.add("-k=${params.TEST_NAME}") } if (params.TEST_SCOPE) { flags.add("-m=${params.TEST_SCOPE}") } @@ -149,7 +149,7 @@ pipeline { """ } } - } } + } } } } } post {