From 5eda5263790b95772e9c4b3dc8300d3e4b9f6a15 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Fri, 9 Aug 2024 17:38:41 +0530 Subject: [PATCH] ci: use current branch as git ref for E2E tests In this PR we get rid of `E2E_GIT_REF` parameter which would default to master or whatever value is set in CI. We instead just rely on `env.BRANCH_NAME` to run E2E tests on the same branch the build on CI is generated from. --- ci/Jenkinsfile.combined | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ci/Jenkinsfile.combined b/ci/Jenkinsfile.combined index 84e0397ab2..c4ea2aac9d 100644 --- a/ci/Jenkinsfile.combined +++ b/ci/Jenkinsfile.combined @@ -28,11 +28,6 @@ pipeline { description: 'Trigger publishing of build results to GitHub.', defaultValue: getPublishDefault(params.PUBLISH), ) - string( - name: 'E2E_GIT_REF', - description: 'GIT_REF for E2E repo.', - defaultValue: params.E2E_GIT_REF ?: 'master', - ) } stages { @@ -73,7 +68,7 @@ pipeline { BUILD_SOURCE: linux_x86_64.fullProjectName, TESTRAIL_RUN_NAME: utils.pkgFilename(), TEST_SCOPE_FLAG: utils.isReleaseBuild() ? '-m=critical' : '', - GIT_REF: params.E2E_GIT_REF, + GIT_REF: env.BRANCH_NAME, ]), ) } }