Skip to content

Commit

Permalink
[CI] cross linting with full match support (elastic#23409) (elastic#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jan 12, 2021
1 parent 1817e9f commit bdaf54b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 40 deletions.
9 changes: 3 additions & 6 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ stages:
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
crosscompile:
make: "make -C auditbeat crosscompile"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -62,8 +60,7 @@ stages:
#- "windows-7-32-bit" https://github.com/elastic/beats/issues/19831
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19799
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
6 changes: 2 additions & 4 deletions filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ stages:
mage: "mage build test"
withModule: true ## run the ITs only if the changeset affects a specific module.
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -57,8 +56,7 @@ stages:
- "windows-2019"
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19795
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
6 changes: 2 additions & 4 deletions heartbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ stages:
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -55,8 +54,7 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-2019"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
3 changes: 1 addition & 2 deletions journalbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ stages:
unitTest:
mage: "mage build unitTest"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
9 changes: 3 additions & 6 deletions libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@ stages:
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
crosscompile:
make: "make -C libbeat crosscompile"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
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:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
15 changes: 5 additions & 10 deletions metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,21 @@ stages:
unitTest:
mage: "mage build unitTest"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
goIntegTest:
mage: "mage goIntegTest"
withModule: true
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
pythonIntegTest:
mage: "mage pythonIntegTest"
withModule: true
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
crosscompile:
make: "make -C metricbeat crosscompile"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -61,8 +57,7 @@ stages:
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19800
#- "windows-7-32-bit" https://github.com/elastic/beats/issues/19835
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
6 changes: 2 additions & 4 deletions packetbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ stages:
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -55,8 +54,7 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-2019"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down
6 changes: 2 additions & 4 deletions winlogbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ stages:
crosscompile:
make: "make -C winlogbeat crosscompile"
when: ## Override the top-level when.
not_changeset:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
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:
- "^x-pack/.*" ## A generic match
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
Expand Down

0 comments on commit bdaf54b

Please sign in to comment.