diff --git a/Jenkinsfile b/Jenkinsfile index 489409597bd..a3c85beb9a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 { diff --git a/auditbeat/Jenkinsfile.yml b/auditbeat/Jenkinsfile.yml index 6510d57c0a6..2d404ae8388 100644 --- a/auditbeat/Jenkinsfile.yml +++ b/auditbeat/Jenkinsfile.yml @@ -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 @@ -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: diff --git a/filebeat/Jenkinsfile.yml b/filebeat/Jenkinsfile.yml index db586a25a8d..a97c9d5b757 100644 --- a/filebeat/Jenkinsfile.yml +++ b/filebeat/Jenkinsfile.yml @@ -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 @@ -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: diff --git a/heartbeat/Jenkinsfile.yml b/heartbeat/Jenkinsfile.yml index 93c194f0ca4..8944137469f 100644 --- a/heartbeat/Jenkinsfile.yml +++ b/heartbeat/Jenkinsfile.yml @@ -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 @@ -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: diff --git a/metricbeat/Jenkinsfile.yml b/metricbeat/Jenkinsfile.yml index f143f120c62..78d3d210491 100644 --- a/metricbeat/Jenkinsfile.yml +++ b/metricbeat/Jenkinsfile.yml @@ -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: diff --git a/packetbeat/Jenkinsfile.yml b/packetbeat/Jenkinsfile.yml index 2004c9e49b8..b14974e040c 100644 --- a/packetbeat/Jenkinsfile.yml +++ b/packetbeat/Jenkinsfile.yml @@ -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 @@ -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: diff --git a/winlogbeat/Jenkinsfile.yml b/winlogbeat/Jenkinsfile.yml index d48f0da2633..eece9aaa2c3 100644 --- a/winlogbeat/Jenkinsfile.yml +++ b/winlogbeat/Jenkinsfile.yml @@ -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" @@ -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: diff --git a/x-pack/auditbeat/Jenkinsfile.yml b/x-pack/auditbeat/Jenkinsfile.yml index 87be6d1e37c..7b5fbe52202 100644 --- a/x-pack/auditbeat/Jenkinsfile.yml +++ b/x-pack/auditbeat/Jenkinsfile.yml @@ -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. @@ -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: diff --git a/x-pack/elastic-agent/Jenkinsfile.yml b/x-pack/elastic-agent/Jenkinsfile.yml index a6895547987..feb617cfcd0 100644 --- a/x-pack/elastic-agent/Jenkinsfile.yml +++ b/x-pack/elastic-agent/Jenkinsfile.yml @@ -32,7 +32,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 @@ -49,11 +49,11 @@ stages: - "macosTest" tags: true ## for all the tags stage: extended - windows: + windows-2019: mage: "mage build unitTest" platforms: ## override default labels in this specific stage. - "windows-2019" - stage: mandatory + stage: extended_win windows-2022: mage: "mage build unitTest" platforms: ## override default labels in this specific stage. @@ -63,22 +63,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: diff --git a/x-pack/filebeat/Jenkinsfile.yml b/x-pack/filebeat/Jenkinsfile.yml index 452081f2cf6..d3a8774b052 100644 --- a/x-pack/filebeat/Jenkinsfile.yml +++ b/x-pack/filebeat/Jenkinsfile.yml @@ -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 @@ -67,36 +67,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 cloud: cloud: "mage build test" withModule: true ## run the ITs only if the changeset affects a specific module. diff --git a/x-pack/functionbeat/Jenkinsfile.yml b/x-pack/functionbeat/Jenkinsfile.yml index 28540bc7bfd..b128a82df5e 100644 --- a/x-pack/functionbeat/Jenkinsfile.yml +++ b/x-pack/functionbeat/Jenkinsfile.yml @@ -49,36 +49,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: diff --git a/x-pack/heartbeat/Jenkinsfile.yml b/x-pack/heartbeat/Jenkinsfile.yml index 1896e553cfa..4232e021320 100644 --- a/x-pack/heartbeat/Jenkinsfile.yml +++ b/x-pack/heartbeat/Jenkinsfile.yml @@ -43,31 +43,31 @@ stages: # TODO: there are windows test failures already reported # https://github.com/elastic/beats/issues/23957 and https://github.com/elastic/beats/issues/23958 # waiting for being fixed. -# windows: +# windows-2019: # mage: "mage build test" # platforms: ## override default labels in this specific stage. # - "windows-2019" -# stage: mandatory +# stage: extended_win # windows-2016: # mage: "mage build test" # platforms: ## override default labels in this specific stage. # - "windows-2016" -# stage: extended +# stage: mandatory # windows-2012: # mage: "mage build test" # platforms: ## override default labels in this specific stage. # - "windows-2012-r2" -# stage: extended +# stage: extended_win # windows-10: # mage: "mage build test" # platforms: ## override default labels in this specific stage. # - "windows-10" -# stage: extended +# stage: extended_win # windows-8: # mage: "mage build test" # platforms: ## override default labels in this specific stage. # - "windows-8" -# stage: extended +# stage: extended_win packaging-linux: packaging-linux: "mage package" e2e: diff --git a/x-pack/metricbeat/Jenkinsfile.yml b/x-pack/metricbeat/Jenkinsfile.yml index 98cd8337f09..fd776b25abf 100644 --- a/x-pack/metricbeat/Jenkinsfile.yml +++ b/x-pack/metricbeat/Jenkinsfile.yml @@ -70,36 +70,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: diff --git a/x-pack/osquerybeat/Jenkinsfile.yml b/x-pack/osquerybeat/Jenkinsfile.yml index ee48870086a..61cb923a554 100644 --- a/x-pack/osquerybeat/Jenkinsfile.yml +++ b/x-pack/osquerybeat/Jenkinsfile.yml @@ -38,36 +38,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: diff --git a/x-pack/packetbeat/Jenkinsfile.yml b/x-pack/packetbeat/Jenkinsfile.yml index 9853afd9f31..6589bc18970 100644 --- a/x-pack/packetbeat/Jenkinsfile.yml +++ b/x-pack/packetbeat/Jenkinsfile.yml @@ -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 @@ -52,37 +52,37 @@ stages: - "macosTest" tags: true ## for all the tags stage: extended - windows: + windows-2022: mage: "mage build unitTest" - withModule: true platforms: ## override default labels in this specific stage. - - "windows-2019" + - "windows-2022" stage: mandatory - windows-2022: + windows-2019: mage: "mage build unitTest" + withModule: true 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: diff --git a/x-pack/winlogbeat/Jenkinsfile.yml b/x-pack/winlogbeat/Jenkinsfile.yml index ece96de7218..ed42313650e 100644 --- a/x-pack/winlogbeat/Jenkinsfile.yml +++ b/x-pack/winlogbeat/Jenkinsfile.yml @@ -28,32 +28,32 @@ stages: withModule: true platforms: ## override default labels in this specific stage. - "windows-2019" - stage: mandatory + stage: extended windows-2022: mage: "mage build unitTest" platforms: ## override default labels in this specific stage. - "windows-2022" - stage: extended + stage: mandatory 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: