Skip to content

Commit 4fe0bc8

Browse files
nixpanicmergify[bot]
authored andcommitted
ci: add Jenkins jobs for each test-type
The main Jenkins job does not accept a test-type anymore, this never worked. Instead, for each test-type a dedicated job is added now. This allows users to trigger a job with a command like this: /test ci/centos/mini-e2e/k8s-1.33/nvmeof Each job for a test-type has the selected test-type as parameter set. Signed-off-by: Niels de Vos <ndevos@ibm.com>
1 parent 1366d36 commit 4fe0bc8

1 file changed

Lines changed: 143 additions & 2 deletions

File tree

jobs/mini-e2e.yaml

Lines changed: 143 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121
- 'rbd'
2222
jobs:
2323
- 'mini-e2e_k8s-{k8s_version}'
24+
- 'mini-e2e_k8s-{k8s_version}-{test_type}'
2425
- 'mini-e2e-helm_k8s-{k8s_version}'
26+
- 'mini-e2e-helm_k8s-{k8s_version}-{test_type}'
2527
- 'mini-e2e-operator_k8s-{k8s_version}'
28+
- 'mini-e2e-operator_k8s-{k8s_version}-{test_type}'
2629

2730
- job-template:
2831
name: 'mini-e2e_k8s-{k8s_version}'
@@ -69,6 +72,51 @@
6972
org-list:
7073
- ceph
7174

75+
- job-template:
76+
name: 'mini-e2e_k8s-{k8s_version}-{test_type}'
77+
project-type: pipeline
78+
concurrent: true
79+
properties:
80+
- github:
81+
url: https://github.com/ceph/ceph-csi
82+
- build-discarder:
83+
days-to-keep: 7
84+
artifact-days-to-keep: 7
85+
# default variables
86+
k8s_version: '<unset>'
87+
# generated parameters for the job (used in the groovy script)
88+
parameters:
89+
- string:
90+
name: k8s_version
91+
default: '{k8s_version}'
92+
description: Kubernetes version to deploy in the test cluster.
93+
- string:
94+
name: test_type
95+
default: '{test_type}'
96+
description: Mentions whether tests run for rbd/cephfs/nfs/nvmeof.
97+
pipeline-scm:
98+
scm:
99+
- git:
100+
name: origin
101+
url: https://github.com/ceph/ceph-csi
102+
branches:
103+
- ci/centos
104+
script-path: mini-e2e.groovy
105+
lightweight-checkout: true
106+
triggers:
107+
- github-pull-request:
108+
status-url: $RUN_DISPLAY_URL
109+
status-context: 'ci/centos/mini-e2e/k8s-{k8s_version}/{test_type}'
110+
# yamllint disable-line rule:line-length
111+
trigger-phrase: '/(re)?test ci/centos/mini-e2e/k8s-{k8s_version}/{test_type}'
112+
only-trigger-phrase: '{only_run_on_request}'
113+
permit-all: true
114+
github-hooks: true
115+
black-list-target-branches:
116+
- ci/centos
117+
org-list:
118+
- ceph
119+
72120
- job-template:
73121
name: 'mini-e2e-helm_k8s-{k8s_version}'
74122
project-type: pipeline
@@ -106,7 +154,54 @@
106154
status-url: $RUN_DISPLAY_URL
107155
status-context: 'ci/centos/mini-e2e-helm/k8s-{k8s_version}'
108156
# yamllint disable-line rule:line-length
109-
trigger-phrase: '/(re)?test ci/centos/mini-e2e-helm(/k8s-{k8s_version}(/(cephfs|nfs|nvmeof|rbd))?)?'
157+
trigger-phrase: '/(re)?test ci/centos/mini-e2e-helm(/k8s-{k8s_version})?'
158+
only-trigger-phrase: '{only_run_on_request}'
159+
permit-all: true
160+
github-hooks: true
161+
black-list-target-branches:
162+
- ci/centos
163+
org-list:
164+
- ceph
165+
allow-whitelist-orgs-as-admins: true
166+
167+
- job-template:
168+
name: 'mini-e2e-helm_k8s-{k8s_version}-{test_type}'
169+
project-type: pipeline
170+
concurrent: true
171+
properties:
172+
- github:
173+
url: https://github.com/ceph/ceph-csi
174+
- build-discarder:
175+
days-to-keep: 7
176+
artifact-days-to-keep: 7
177+
# default variables
178+
k8s_version: '<unset>'
179+
# generated parameters for the job (used in the groovy script)
180+
parameters:
181+
- string:
182+
name: k8s_version
183+
default: '{k8s_version}'
184+
description: Kubernetes version to deploy in the test cluster.
185+
- string:
186+
name: test_type
187+
default: '{test_type}'
188+
description: Mentions whether tests run for rbd/cephfs/nfs/nvmeof.
189+
190+
pipeline-scm:
191+
scm:
192+
- git:
193+
name: origin
194+
url: https://github.com/ceph/ceph-csi
195+
branches:
196+
- ci/centos
197+
script-path: mini-e2e-helm.groovy
198+
lightweight-checkout: true
199+
triggers:
200+
- github-pull-request:
201+
status-url: $RUN_DISPLAY_URL
202+
status-context: 'ci/centos/mini-e2e-helm/k8s-{k8s_version}/{test_type}'
203+
# yamllint disable-line rule:line-length
204+
trigger-phrase: '/(re)?test ci/centos/mini-e2e-helm/k8s-{k8s_version}/{test_type}'
110205
only-trigger-phrase: '{only_run_on_request}'
111206
permit-all: true
112207
github-hooks: true
@@ -153,7 +248,53 @@
153248
status-url: $RUN_DISPLAY_URL
154249
status-context: 'ci/centos/mini-e2e-operator/k8s-{k8s_version}'
155250
# yamllint disable-line rule:line-length
156-
trigger-phrase: '/(re)?test ci/centos/mini-e2e-operator(/k8s-{k8s_version}(/(cephfs|nfs|nvmeof|rbd))?)?'
251+
trigger-phrase: '/(re)?test ci/centos/mini-e2e-operator(/k8s-{k8s_version})?'
252+
only-trigger-phrase: '{only_run_on_request}'
253+
permit-all: true
254+
github-hooks: true
255+
black-list-target-branches:
256+
- ci/centos
257+
org-list:
258+
- ceph
259+
260+
- job-template:
261+
name: 'mini-e2e-operator_k8s-{k8s_version}-{test_type}'
262+
project-type: pipeline
263+
concurrent: true
264+
properties:
265+
- github:
266+
url: https://github.com/ceph/ceph-csi
267+
- build-discarder:
268+
days-to-keep: 7
269+
artifact-days-to-keep: 7
270+
# default variables
271+
k8s_version: '<unset>'
272+
# generated parameters for the job (used in the groovy script)
273+
parameters:
274+
- string:
275+
name: k8s_version
276+
default: '{k8s_version}'
277+
description: Kubernetes version to deploy in the test cluster.
278+
- string:
279+
name: test_type
280+
default: '{test_type}'
281+
description: Mentions whether tests run for rbd/cephfs/nfs/nvmeof.
282+
283+
pipeline-scm:
284+
scm:
285+
- git:
286+
name: origin
287+
url: https://github.com/ceph/ceph-csi
288+
branches:
289+
- ci/centos
290+
script-path: mini-e2e-operator.groovy
291+
lightweight-checkout: true
292+
triggers:
293+
- github-pull-request:
294+
status-url: $RUN_DISPLAY_URL
295+
status-context: 'ci/centos/mini-e2e-operator/k8s-{k8s_version}/{test_type}'
296+
# yamllint disable-line rule:line-length
297+
trigger-phrase: '/(re)?test ci/centos/mini-e2e-operator/k8s-{k8s_version}/{test_type}'
157298
only-trigger-phrase: '{only_run_on_request}'
158299
permit-all: true
159300
github-hooks: true

0 commit comments

Comments
 (0)