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

Commit

Permalink
[meta] use same staging job for all branches (elastic#728)
Browse files Browse the repository at this point in the history
We currently have staging jobs for every branch (6.8, 7.8, 7.x & master). However, we should only test staging from the minor release branches (ie: 6.8 & 7.8). In addition, staging jobs are only triggered manually after a BC, so staging job for a specific branch should rarely have more than 10 builds. This commit will rationalize and help having a cleaner Helm charts Jenkins view by using the same staging jobs for every branches.
  • Loading branch information
jmlrt committed Jul 17, 2020
1 parent 480a194 commit 47a45cf
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 9 deletions.
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+cluster-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -20,6 +25,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+cluster-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -20,6 +25,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+integration-apm-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -24,6 +29,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -24,6 +29,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+integration-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -24,6 +29,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+integration-kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -24,6 +29,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+integration-logstash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -24,6 +29,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging+integration-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'True'
axes:
- axis:
Expand All @@ -24,6 +29,9 @@
type: yaml
name: KUBERNETES_VERSION
filename: helpers/matrix.yml
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- shell: |-
#!/usr/local/bin/runbld
Expand Down
10 changes: 9 additions & 1 deletion .ci/jobs/elastic+helm-charts+staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@
parameters:
- string:
name: BUILD_ID
description: "The buildId for the staging images. (Example: 7.6.1-abcdabcd)"
description: "The buildId for the staging images. (Example: 7.8.1-abcdabcd)"
- string:
name: BRANCH
description: "The helm-charts repo branch to use. (Example: 7.8)"
project-type: multijob
scm:
- git:
branches:
- $BRANCH
wipe-workspace: 'False'
wrappers:
- build-name:
name: "${BUILD_NUMBER} - ${BRANCH} - ${BUILD_ID}"
builders:
- multijob:
name: template testing and kubernetes cluster creation
Expand Down

0 comments on commit 47a45cf

Please sign in to comment.