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.
This commit is contained in:
parent
86e054a328
commit
5eda526379
|
@ -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