Skip to content

Commit d4a48e7

Browse files
mdelapenyamergify-bot
authored andcommitted
chore: pass BEAT_VERSION when running E2E tests (#26291)
(cherry picked from commit ea84a3b)
1 parent bc6c13b commit d4a48e7

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.ci/packaging.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,13 @@ def triggerE2ETests(String suite) {
425425

426426
def branchName = isPR() ? "${env.CHANGE_TARGET}" : "${env.JOB_BASE_NAME}.x"
427427
def e2eTestsPipeline = "e2e-tests/e2e-testing-mbp/${branchName}"
428+
def beatVersion = "${env.BEAT_VERSION}-SNAPSHOT"
428429

429430
def parameters = [
430431
booleanParam(name: 'forceSkipGitChecks', value: true),
431432
booleanParam(name: 'forceSkipPresubmit', value: true),
432433
booleanParam(name: 'notifyOnGreenBuilds', value: !isPR()),
434+
booleanParam(name: 'BEAT_VERSION', value: beatVersion),
433435
booleanParam(name: 'BEATS_USE_CI_SNAPSHOTS', value: true),
434436
string(name: 'runTestsSuites', value: suite),
435437
string(name: 'GITHUB_CHECK_NAME', value: env.GITHUB_CHECK_E2E_TESTS_NAME),

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ def e2e(Map args = [:]) {
520520
def goVersionForE2E = readFile('.go-version').trim()
521521
withEnv(["GO_VERSION=${goVersionForE2E}",
522522
"BEATS_LOCAL_PATH=${env.WORKSPACE}/${env.BASE_DIR}",
523+
"BEAT_VERSION=${env.VERSION}-SNAPSHOT",
523524
"LOG_LEVEL=TRACE"]) {
524525
def status = 0
525526
filebeat(output: dockerLogFile){

0 commit comments

Comments
 (0)