Skip to content

Commit 2241413

Browse files
authored
ci: e2e-testing should fail the build (#31135)
1 parent c8915ea commit 2241413

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

.ci/packaging.groovy

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -427,23 +427,21 @@ def runE2ETests(){
427427

428428
def suites = '' // empty value represents all suites in the E2E tests
429429

430-
catchError(buildResult: 'UNSTABLE', message: 'Unable to run e2e tests', stageResult: 'FAILURE') {
431-
def suitesSet = e2eTestSuites.toSet()
430+
def suitesSet = e2eTestSuites.toSet()
432431

433-
if (!suitesSet.contains('ALL')) {
434-
suitesSet.each { suite ->
435-
suites += "${suite},"
436-
};
437-
}
438-
echo 'runE2E will run now in a sync mode to validate packages can be published.'
439-
runE2E(runTestsSuites: suites,
440-
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
441-
gitHubCheckName: env.GITHUB_CHECK_E2E_TESTS_NAME,
442-
gitHubCheckRepo: env.REPO,
443-
gitHubCheckSha1: env.GIT_BASE_COMMIT,
444-
propagate: true,
445-
wait: true)
432+
if (!suitesSet.contains('ALL')) {
433+
suitesSet.each { suite ->
434+
suites += "${suite},"
435+
};
446436
}
437+
echo 'runE2E will run now in a sync mode to validate packages can be published.'
438+
runE2E(runTestsSuites: suites,
439+
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
440+
gitHubCheckName: env.GITHUB_CHECK_E2E_TESTS_NAME,
441+
gitHubCheckRepo: env.REPO,
442+
gitHubCheckSha1: env.GIT_BASE_COMMIT,
443+
propagate: true,
444+
wait: true)
447445
}
448446

449447
/**

0 commit comments

Comments
 (0)