Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: split windows in mandatory and ext_win stages #30781

Merged
merged 5 commits into from
Mar 15, 2022
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
17 changes: 17 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,23 @@ pipeline {
runBuildAndTest(filterStage: 'extended')
}
}
stage('ExtendedWin') {
options { skipDefaultCheckout() }
when {
// On a branches/tags, skip if changes are only related to docs.
// Always when forcing the input parameter
anyOf {
allOf { // If no PR and no docs changes
expression { return env.ONLY_DOCS == "false" }
not { changeRequest() }
}
expression { return params.runAllStages } // If UI forced
}
}
steps {
runBuildAndTest(filterStage: 'extended_win')
}
}
stage('Packaging') {
options { skipDefaultCheckout() }
when {
Expand Down
20 changes: 10 additions & 10 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stages:
- "armTest"
branches: true ## for all the branches
tags: true ## for all the tags
stage: extended
stage: mandatory
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand All @@ -54,36 +54,36 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2022"
stage: mandatory
windows-2022:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: extended
- "windows-2019"
stage: extended_win
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
stage: extended_win
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
18 changes: 9 additions & 9 deletions filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stages:
- "armTest"
branches: true ## for all the branches
tags: true ## for all the tags
stage: extended
stage: mandatory
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand Down Expand Up @@ -66,31 +66,31 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2022"
stage: mandatory
windows-2022:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: extended
- "windows-2019"
stage: extended_win
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
20 changes: 10 additions & 10 deletions heartbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stages:
- "armTest"
branches: true ## for all the branches
tags: true ## for all the tags
stage: extended
stage: mandatory
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand All @@ -59,36 +59,36 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2022"
stage: mandatory
windows-2022:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: extended
- "windows-2019"
stage: extended_win
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
stage: extended_win
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
16 changes: 8 additions & 8 deletions metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,36 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2022"
stage: mandatory
windows-2022:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
- "windows-2019"
stage: extended
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
stage: extended_win
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
20 changes: 10 additions & 10 deletions packetbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stages:
- "armTest"
branches: true ## for all the branches
tags: true ## for all the tags
stage: extended
stage: mandatory
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand All @@ -52,36 +52,36 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2022"
stage: mandatory
windows-2022:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: extended
- "windows-2019"
stage: extended_win
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
stage: extended_win
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
10 changes: 5 additions & 5 deletions winlogbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ stages:
crosscompile:
make: "make -C winlogbeat crosscompile"
stage: mandatory
windows:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
Expand All @@ -33,22 +33,22 @@ stages:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
stage: extended_win
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
20 changes: 10 additions & 10 deletions x-pack/auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stages:
- "armTest"
branches: true ## for all the branches
tags: true ## for all the tags
stage: extended
stage: mandatory
build:
mage: "mage update build test"
withModule: true ## run the ITs only if the changeset affects a specific module.
Expand All @@ -52,36 +52,36 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2022"
stage: mandatory
windows-2022:
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: extended
- "windows-2019"
stage: extended_win
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
stage: mandatory
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
stage: extended_win
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
stage: extended_win
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
stage: extended_win
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
Loading