chore(ci): set PR E2E tests timeout to 30 min

This commit is contained in:
Anton Iakimov 2024-06-07 14:13:58 +02:00
parent e5e3ff4408
commit cb105b9f7d
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,7 @@ pipeline {
}
stage('Test') {
steps { timeout(90) { script { dir('test/e2e') {
steps { timeout(getTestStageTimeout()) { script { dir('test/e2e') {
def flags = []
if (params.TEST_NAME) { flags.add("-k=${params.TEST_NAME}") }
if (params.TEST_SCOPE_FLAG) { flags.add(params.TEST_SCOPE_FLAG) }
@ -249,3 +249,5 @@ def getDefaultTestScopeFlag() {
return '-m=critical'
}
}
def getTestStageTimeout() { TEST_SCOPE_FLAG == '-m=critical' ? 30 : 120 }