From 4e13916d89a20e9914d894c7e7e3efc744168cc9 Mon Sep 17 00:00:00 2001 From: Anton Iakimov Date: Fri, 22 Dec 2023 17:17:34 +0100 Subject: [PATCH] ci: set TEST_SCOPE_FLAG conditionally on JOB_NAME --- test/e2e/ci/Jenkinsfile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/test/e2e/ci/Jenkinsfile b/test/e2e/ci/Jenkinsfile index a14c309d6a..9537621ace 100644 --- a/test/e2e/ci/Jenkinsfile +++ b/test/e2e/ci/Jenkinsfile @@ -31,9 +31,9 @@ pipeline { defaultValue: '' ) string( - name: 'TEST_SCOPE', + name: 'TEST_SCOPE_FLAG', description: 'Paste a known mark to run tests labeled with this mark', - defaultValue: 'critical' + defaultValue: getDefaultTestScopeFlag() ) string( name: 'TESTRAIL_RUN_NAME', @@ -82,7 +82,10 @@ pipeline { stages { stage('Prep') { steps { script { + sh 'env | grep nightly' + sh 'env | grep BUILD_' setNewBuildName() + sh 'echo $BUILD_DISPLAY_NAME' updateGitHubStatus() } } } @@ -135,7 +138,7 @@ pipeline { 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}") } + if (params.TEST_SCOPE_FLAG) { flags.add(params.TEST_SCOPE_FLAG) } if (params.LOG_LEVEL) { flags.addAll(["--log-level=${params.LOG_LEVEL}", "--log-cli-level=${params.LOG_LEVEL}"]) } dir ('configs') { sh 'ln -s _local.ci.py _local.py' } wrap([ @@ -226,3 +229,11 @@ def getDefaultBuildSource() { } return '' } + +def getDefaultTestScopeFlag() { + if (JOB_NAME == "status-desktop/systems/linux/x86_64/tests-e2e-new") { + return '' + } else { + return '-m=critical' + } +}