Skip to content

Commit

Permalink
[CI] Run mandatory stages when only x-pack changes on branches/tags (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jan 15, 2021
1 parent b90b70e commit 705ce2d
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ stages:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
crosscompile:
make: "make -C auditbeat crosscompile"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -61,6 +65,8 @@ stages:
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19799
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
4 changes: 4 additions & 0 deletions filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ stages:
withModule: true ## run the ITs only if the changeset affects a specific module.
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -57,6 +59,8 @@ stages:
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19795
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
4 changes: 4 additions & 0 deletions heartbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ stages:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -55,6 +57,8 @@ stages:
- "windows-2019"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
2 changes: 2 additions & 0 deletions journalbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ stages:
mage: "mage build unitTest"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
6 changes: 6 additions & 0 deletions libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ stages:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
crosscompile:
make: "make -C libbeat crosscompile"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
stress-tests:
make: "make STRESS_TEST_OPTIONS='-timeout=20m -race -v -parallel 1' -C libbeat stress-tests"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
10 changes: 10 additions & 0 deletions metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,28 @@ stages:
mage: "mage build unitTest"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
goIntegTest:
mage: "mage goIntegTest"
withModule: true
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
pythonIntegTest:
mage: "mage pythonIntegTest"
withModule: true
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
crosscompile:
make: "make -C metricbeat crosscompile"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -58,6 +66,8 @@ stages:
#- "windows-7-32-bit" https://github.com/elastic/beats/issues/19835
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
4 changes: 4 additions & 0 deletions packetbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ stages:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -55,6 +57,8 @@ stages:
- "windows-2019"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
4 changes: 4 additions & 0 deletions winlogbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ stages:
make: "make -C winlogbeat crosscompile"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
- "windows-2008-r2"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down

0 comments on commit 705ce2d

Please sign in to comment.