Skip to content

Commit

Permalink
updated configs - disabled all projects except auditbeat.
Browse files Browse the repository at this point in the history
Added macosActions stage to config for auditbeat.
  • Loading branch information
nxei committed Nov 25, 2021
1 parent e3c6695 commit 2d04883
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 114 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ def githubAction(Map args = [:]) {
path: args.directory,
command: args.command,
go_version: env.GO_VERSION,
],
credentialsId: "unlim2-workflow-token-1")
])
log(level: 'INFO', text: "Github build link: ${$result.html_url}")
log(level: 'INFO', text: "Github build status: ${result.conclusion}")
}
Expand Down
38 changes: 19 additions & 19 deletions Jenkinsfile.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
projects:
- "auditbeat"
- "deploy/kubernetes"
- "filebeat"
- "heartbeat"
- "libbeat"
- "metricbeat"
- "packetbeat"
- "winlogbeat"
- "x-pack/auditbeat"
- "x-pack/dockerlogbeat"
- "x-pack/elastic-agent"
- "x-pack/filebeat"
- "x-pack/functionbeat"
- "x-pack/heartbeat"
- "x-pack/libbeat"
- "x-pack/metricbeat"
- "x-pack/osquerybeat"
- "x-pack/packetbeat"
- "x-pack/winlogbeat"
- "dev-tools"
# - "deploy/kubernetes"
# - "filebeat"
# - "heartbeat"
# - "libbeat"
# - "metricbeat"
# - "packetbeat"
# - "winlogbeat"
# - "x-pack/auditbeat"
# - "x-pack/dockerlogbeat"
# - "x-pack/elastic-agent"
# - "x-pack/filebeat"
# - "x-pack/functionbeat"
# - "x-pack/heartbeat"
# - "x-pack/libbeat"
# - "x-pack/metricbeat"
# - "x-pack/osquerybeat"
# - "x-pack/packetbeat"
# - "x-pack/winlogbeat"
# - "dev-tools"

## Changeset macros that are defined here and used in each specific 2.0 pipeline.
changeset:
Expand Down
189 changes: 96 additions & 93 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,75 +13,75 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
lint:
make: |
make -C auditbeat check;
make -C auditbeat update;
make -C x-pack/auditbeat check;
make -C x-pack/auditbeat update;
make check-no-changes;
stage: lint
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
- "arm"
when: ## Override the top-level when.
comments:
- "/test auditbeat for arm"
labels:
- "arm"
parameters:
- "armTest"
branches: true ## for all the branches
tags: true ## for all the tags
stage: extended
unitTest:
mage: "mage build unitTest"
stage: mandatory
crosscompile:
make: "make -C auditbeat crosscompile"
stage: mandatory
macosActions:
githubAction: "mage build unitTest"
stage: extended
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
- "macosx&&x86_64"
when: ## Override the top-level when.
comments:
- "/test auditbeat for macos"
labels:
- "macOS"
parameters:
- "macosTest"
tags: true ## for all the tags
stage: extended
windows:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
stage: mandatory
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
stage: extended
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
stage: extended
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
stage: extended
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
stage: extended
# lint:
# make: |
# make -C auditbeat check;
# make -C auditbeat update;
# make -C x-pack/auditbeat check;
# make -C x-pack/auditbeat update;
# make check-no-changes;
# stage: lint
# arm:
# mage: "mage build unitTest"
# platforms: ## override default label in this specific stage.
# - "arm"
# when: ## Override the top-level when.
# comments:
# - "/test auditbeat for arm"
# labels:
# - "arm"
# parameters:
# - "armTest"
# branches: true ## for all the branches
# tags: true ## for all the tags
# stage: extended
# unitTest:
# mage: "mage build unitTest"
# stage: mandatory
# crosscompile:
# make: "make -C auditbeat crosscompile"
# stage: mandatory
# macosActions:
# githubAction: "mage build unitTest"
# stage: extended
# macos:
# mage: "mage build unitTest"
# platforms: ## override default label in this specific stage.
# - "macosx&&x86_64"
# when: ## Override the top-level when.
# comments:
# - "/test auditbeat for macos"
# labels:
# - "macOS"
# parameters:
# - "macosTest"
# tags: true ## for all the tags
# stage: extended
# windows:
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
# - "windows-2019"
# stage: mandatory
# windows-2016:
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
# - "windows-2016"
# stage: extended
# windows-2012:
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
# - "windows-2012-r2"
# stage: extended
# windows-10:
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
# - "windows-10"
# stage: extended
# windows-8:
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
# - "windows-8"
# stage: extended
#windows-2008: See https://github.com/elastic/beats/issues/19799
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
Expand All @@ -97,27 +97,30 @@ stages:
# platforms: ## override default labels in this specific stage.
# - "windows-7-32-bit"
# stage: extended
packaging-linux:
packaging-linux: "mage package"
e2e:
enabled: false
stage: packaging
when:
branches: false ## Only on a PR basis for the time being
tags: false ## packaging on branches/tags is already in place with the downstream build.
changeset: ## when PR contains any of those entries in the changeset
- "^auditbeat/.*"
- "@oss" ## special token regarding the changeset for the oss
packaging-arm:
packaging-arm: "mage package"
e2e:
enabled: false
platforms: ## override default label in this specific stage.
- "arm"
stage: packaging
when:
branches: false ## Only on a PR basis for the time being
tags: false ## packaging on branches/tags is already in place with the downstream build.
changeset: ## when PR contains any of those entries in the changeset
- "^auditbeat/.*"
- "@oss" ## special token regarding the changeset for the oss
# packaging-linux:
# packaging-linux: "mage package"
# e2e:
# enabled: false
# stage: packaging
# when:
# branches: false ## Only on a PR basis for the time being
# tags: false ## packaging on branches/tags is already in place with the downstream build.
# changeset: ## when PR contains any of those entries in the changeset
# - "^auditbeat/.*"
# - "@oss" ## special token regarding the changeset for the oss
# packaging-arm:
# packaging-arm: "mage package"
# e2e:
# enabled: false
# platforms: ## override default label in this specific stage.
# - "arm"
# stage: packaging
# when:
# branches: false ## Only on a PR basis for the time being
# tags: false ## packaging on branches/tags is already in place with the downstream build.
# changeset: ## when PR contains any of those entries in the changeset
# - "^auditbeat/.*"
# - "@oss" ## special token regarding the changeset for the oss
macosActions:
githubAction: "mage build unitTest"
stage: mandatory

0 comments on commit 2d04883

Please sign in to comment.