Skip to content

Commit

Permalink
ci: split windows in mandatory and ext_win stages (#30781)
Browse files Browse the repository at this point in the history
(cherry picked from commit f0912da)
  • Loading branch information
v1v authored and mergify-bot committed Mar 15, 2022
1 parent 883c44b commit 9021823
Show file tree
Hide file tree
Showing 16 changed files with 146 additions and 129 deletions.
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 @@ -67,31 +67,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

0 comments on commit 9021823

Please sign in to comment.