Skip to content

Commit

Permalink
CI: disable e2e for elastic-agent on tags/branches (#28481) (#28490)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 19, 2021
1 parent bce52a4 commit 12356e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 12356e5

Please sign in to comment.