diff --git a/.ci/jobs/elastic+helm-charts+master+integration-metricbeat.yml b/.ci/jobs/elastic+helm-charts+master+integration-metricbeat.yml new file mode 100644 index 000000000..6e3a4663a --- /dev/null +++ b/.ci/jobs/elastic+helm-charts+master+integration-metricbeat.yml @@ -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 diff --git a/.ci/jobs/elastic+helm-charts+master.yml b/.ci/jobs/elastic+helm-charts+master.yml index 472ee988c..ff5579326 100644 --- a/.ci/jobs/elastic+helm-charts+master.yml +++ b/.ci/jobs/elastic+helm-charts+master.yml @@ -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 diff --git a/.ci/jobs/elastic+helm-charts+pull-request+integration-metricbeat.yml b/.ci/jobs/elastic+helm-charts+pull-request+integration-metricbeat.yml new file mode 100644 index 000000000..fe53b9a70 --- /dev/null +++ b/.ci/jobs/elastic+helm-charts+pull-request+integration-metricbeat.yml @@ -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 diff --git a/.ci/jobs/elastic+helm-charts+pull-request.yml b/.ci/jobs/elastic+helm-charts+pull-request.yml index 7824d1359..e0341e119 100644 --- a/.ci/jobs/elastic+helm-charts+pull-request.yml +++ b/.ci/jobs/elastic+helm-charts+pull-request.yml @@ -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