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)

# Conflicts:
#	auditbeat/Jenkinsfile.yml
#	filebeat/Jenkinsfile.yml
#	heartbeat/Jenkinsfile.yml
#	metricbeat/Jenkinsfile.yml
#	packetbeat/Jenkinsfile.yml
#	winlogbeat/Jenkinsfile.yml
#	x-pack/auditbeat/Jenkinsfile.yml
#	x-pack/elastic-agent/Jenkinsfile.yml
#	x-pack/filebeat/Jenkinsfile.yml
#	x-pack/functionbeat/Jenkinsfile.yml
#	x-pack/heartbeat/Jenkinsfile.yml
#	x-pack/metricbeat/Jenkinsfile.yml
#	x-pack/osquerybeat/Jenkinsfile.yml
#	x-pack/packetbeat/Jenkinsfile.yml
#	x-pack/winlogbeat/Jenkinsfile.yml
  • Loading branch information
v1v authored and mergify-bot committed Mar 15, 2022
1 parent 4ae6d10 commit b879ed3
Show file tree
Hide file tree
Showing 16 changed files with 326 additions and 45 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
25 changes: 21 additions & 4 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 @@ -60,30 +60,44 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
<<<<<<< HEAD
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: mandatory
=======
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: mandatory
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
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"
<<<<<<< HEAD
stage: extended
#windows-2008: See https://github.com/elastic/beats/issues/19799
# mage: "mage build unitTest"
Expand All @@ -100,6 +114,9 @@ stages:
# platforms: ## override default labels in this specific stage.
# - "windows-7-32-bit"
# stage: extended
=======
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
23 changes: 20 additions & 3 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 @@ -72,26 +72,40 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
<<<<<<< HEAD
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19795
stage: mandatory
=======
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: mandatory
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
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"
<<<<<<< HEAD
stage: extended
#windows-7: See https://github.com/elastic/beats/issues/22317
# mage: "mage build unitTest"
Expand All @@ -104,6 +118,9 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-7-32-bit"
stage: extended
=======
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
25 changes: 21 additions & 4 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,30 +59,44 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
<<<<<<< HEAD
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: mandatory
=======
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: mandatory
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
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"
<<<<<<< HEAD
stage: extended
windows-7:
mage: "mage build unitTest"
Expand All @@ -94,6 +108,9 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-7-32-bit"
stage: extended
=======
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
23 changes: 20 additions & 3 deletions metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,44 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
<<<<<<< HEAD
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: mandatory
=======
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: mandatory
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: extended
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
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"
<<<<<<< HEAD
stage: extended
windows-2008:
mage: "mage build unitTest"
Expand All @@ -88,6 +102,9 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-7-32-bit"
stage: extended
=======
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
27 changes: 24 additions & 3 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,35 +52,53 @@ stages:
- "macosTest"
tags: true ## for all the tags
stage: extended
<<<<<<< HEAD
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: mandatory
=======
windows-2022:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2022"
stage: mandatory
windows-2019:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
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"
<<<<<<< HEAD
stage: extended
windows-2008:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2008-r2"
stage: extended
=======
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
<<<<<<< HEAD
stage: extended
windows-7:
mage: "mage build unitTest"
Expand All @@ -92,6 +110,9 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-7-32-bit"
stage: extended
=======
stage: extended_win
>>>>>>> f0912dac8b (ci: split windows in mandatory and ext_win stages (#30781))
packaging-linux:
packaging-linux: "mage package"
e2e:
Expand Down
Loading

0 comments on commit b879ed3

Please sign in to comment.