Skip to content

Commit

Permalink
ci: run e2e-testing at the end (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 13, 2022
1 parent 9b17473 commit 6fb3a93
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -286,29 +286,6 @@ pipeline {
}
}
}
stage('e2e tests') {
when {
// Always when running builds on branches/tags
// Enable if e2e related changes.
beforeAgent true
anyOf {
not { changeRequest() }
// package artifacts are not generated if ONLY_DOCS, therefore e2e should not run if ONLY_DOCS
expression { return isE2eEnabled() && env.ONLY_DOCS == "false"}
}
}
steps {
// TODO: what's the testMatrixFile to be used if any
runE2E(testMatrixFile: '.ci/.e2e-tests-for-elastic-agent.yaml',
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
elasticAgentVersion: "${env.BEAT_VERSION}-SNAPSHOT",
gitHubCheckName: "e2e-tests",
gitHubCheckRepo: env.REPO,
gitHubCheckSha1: env.GIT_BASE_COMMIT,
propagate: true,
wait: true)
}
}
stage('extended windows') {
when {
// Always when running builds on branches/tags
Expand Down Expand Up @@ -418,6 +395,28 @@ pipeline {
}
}
}
stage('e2e tests') {
when {
// Always when running builds on branches/tags
// Enable if e2e related changes.
beforeAgent true
anyOf {
not { changeRequest() }
// package artifacts are not generated if ONLY_DOCS, therefore e2e should not run if ONLY_DOCS
expression { return isE2eEnabled() && env.ONLY_DOCS == "false"}
}
}
steps {
runE2E(testMatrixFile: '.ci/.e2e-tests-for-elastic-agent.yaml',
beatVersion: "${env.BEAT_VERSION}-SNAPSHOT",
elasticAgentVersion: "${env.BEAT_VERSION}-SNAPSHOT",
gitHubCheckName: "e2e-tests",
gitHubCheckRepo: env.REPO,
gitHubCheckSha1: env.GIT_BASE_COMMIT,
propagate: true,
wait: true)
}
}
}
post {
cleanup {
Expand Down

0 comments on commit 6fb3a93

Please sign in to comment.