ci: use current branch as git ref for E2E tests (#16057)
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. Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>
This commit is contained in:
parent
d8ec7af414
commit
2f346549a5
|
@ -28,11 +28,6 @@ pipeline {
|
||||||
description: 'Trigger publishing of build results to GitHub.',
|
description: 'Trigger publishing of build results to GitHub.',
|
||||||
defaultValue: getPublishDefault(params.PUBLISH),
|
defaultValue: getPublishDefault(params.PUBLISH),
|
||||||
)
|
)
|
||||||
string(
|
|
||||||
name: 'E2E_GIT_REF',
|
|
||||||
description: 'GIT_REF for E2E repo.',
|
|
||||||
defaultValue: params.E2E_GIT_REF ?: 'master',
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
@ -73,7 +68,7 @@ pipeline {
|
||||||
BUILD_SOURCE: linux_x86_64.fullProjectName,
|
BUILD_SOURCE: linux_x86_64.fullProjectName,
|
||||||
TESTRAIL_RUN_NAME: utils.pkgFilename(),
|
TESTRAIL_RUN_NAME: utils.pkgFilename(),
|
||||||
TEST_SCOPE_FLAG: utils.isReleaseBuild() ? '-m=critical' : '',
|
TEST_SCOPE_FLAG: utils.isReleaseBuild() ? '-m=critical' : '',
|
||||||
GIT_REF: params.E2E_GIT_REF,
|
GIT_REF: env.BRANCH_NAME,
|
||||||
]),
|
]),
|
||||||
)
|
)
|
||||||
} }
|
} }
|
||||||
|
|
Loading…
Reference in New Issue