Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Add CI definitions for metricbeat chart #128

Merged
merged 1 commit into from
May 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .ci/jobs/elastic+helm-charts+master+integration-metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
- job:
name: elastic+helm-charts+master+integration-metricbeat
display-name: elastic / helm-charts - master - integration metricbeat
description: Master - integration metricbeat
scm:
- git:
wipe-workspace: 'True'
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: METRICBEAT_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail

set +x
export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x

cluster_name="helm-${KUBERNETES_VERSION//./}-${branch_specifier:0:10}"

cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${METRICBEAT_SUITE} CHART=metricbeat
2 changes: 2 additions & 0 deletions .ci/jobs/elastic+helm-charts+master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
current-parameters: true
- name: elastic+helm-charts+master+integration-filebeat
current-parameters: true
- name: elastic+helm-charts+master+integration-metricbeat
current-parameters: true
publishers:
- trigger-parameterized-builds:
- project: elastic+helm-charts+master+cluster-cleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
- job:
name: elastic+helm-charts+pull-request+integration-metricbeat
display-name: elastic / helm-charts - pull-request - integration metricbeat
description: Pull request - integration metricbeat
scm:
- git:
refspec: +refs/pull/*:refs/remotes/origin/pr/*
axes:
- axis:
type: slave
name: label
values:
- docker&&virtual
- axis:
type: yaml
name: METRICBEAT_SUITE
filename: helpers/matrix.yml
- axis:
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
builders:
- shell: |-
#!/usr/local/bin/runbld
set -euo pipefail

set +x
export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")
unset VAULT_ROLE_ID VAULT_SECRET_ID
set -x

cluster_name="helm-${KUBERNETES_VERSION//./}-${branch_specifier:0:10}"

cd helpers/terraform/
./in-docker make integration KUBERNETES_VERSION=${KUBERNETES_VERSION} CLUSTER_NAME=${cluster_name} SUITE=${METRICBEAT_SUITE} CHART=metricbeat
3 changes: 3 additions & 0 deletions .ci/jobs/elastic+helm-charts+pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
- name: elastic+helm-charts+pull-request+integration-filebeat
current-parameters: true
predefined-parameters: branch_specifier=${ghprbActualCommit}
- name: elastic+helm-charts+pull-request+integration-metricbeat
current-parameters: true
predefined-parameters: branch_specifier=${ghprbActualCommit}
publishers:
- trigger-parameterized-builds:
- project: elastic+helm-charts+pull-request+cluster-cleanup
Expand Down