Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ def getBeatsName(baseDir) {
*/
def e2e(Map args = [:]) {
if (!args.e2e?.get('enabled', false)) { return }
// Skip running the tests on branches or tags if configured.
if (!isPR() && args.e2e?.get('when', false)) {
if (isBranch() && !args.e2e.when.get('branches', true)) { return }
if (isTag() && !args.e2e.when.get('tags', true)) { return }
}
if (args.e2e.get('entrypoint', '')?.trim()) {
e2e_with_entrypoint(args)
} else {
Expand Down
3 changes: 3 additions & 0 deletions x-pack/elastic-agent/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ stages:
enabled: true
job: 'e2e-tests/e2e-testing-mbp'
testMatrixFile: '.ci/.e2e-tests-for-elastic-agent.yaml'
when: ## Customise when to run this subtask in the packaging stage.
branches: false ## Only on a PR basis for the time being
tags: false ## e2e on branches/tags is already in place with the downstream build.
stage: packaging
packaging-arm:
packaging-arm: "mage package"
Expand Down