From b35a1bf226b51308d7c0fb1f7a03e4973fc5da13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 23 Jun 2021 16:50:40 +0200 Subject: [PATCH] chore: pass BEAT_VERSION when running E2E tests (#26291) --- .ci/packaging.groovy | 2 ++ Jenkinsfile | 1 + 2 files changed, 3 insertions(+) diff --git a/.ci/packaging.groovy b/.ci/packaging.groovy index 6b41838ce451..d0d7c00c1b53 100644 --- a/.ci/packaging.groovy +++ b/.ci/packaging.groovy @@ -425,11 +425,13 @@ def triggerE2ETests(String suite) { def branchName = isPR() ? "${env.CHANGE_TARGET}" : "${env.JOB_BASE_NAME}" def e2eTestsPipeline = "e2e-tests/e2e-testing-mbp/${branchName}" + def beatVersion = "${env.BEAT_VERSION}-SNAPSHOT" def parameters = [ booleanParam(name: 'forceSkipGitChecks', value: true), booleanParam(name: 'forceSkipPresubmit', value: true), booleanParam(name: 'notifyOnGreenBuilds', value: !isPR()), + booleanParam(name: 'BEAT_VERSION', value: beatVersion), booleanParam(name: 'BEATS_USE_CI_SNAPSHOTS', value: true), string(name: 'runTestsSuites', value: suite), string(name: 'GITHUB_CHECK_NAME', value: env.GITHUB_CHECK_E2E_TESTS_NAME), diff --git a/Jenkinsfile b/Jenkinsfile index 5236cd129c08..527bcbecb55e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -520,6 +520,7 @@ def e2e(Map args = [:]) { def goVersionForE2E = readFile('.go-version').trim() withEnv(["GO_VERSION=${goVersionForE2E}", "BEATS_LOCAL_PATH=${env.WORKSPACE}/${env.BASE_DIR}", + "BEAT_VERSION=${env.VERSION}-SNAPSHOT", "LOG_LEVEL=TRACE"]) { def status = 0 filebeat(output: dockerLogFile){