@@ -41,7 +41,7 @@ resource_types:
41
41
type: docker-image
42
42
source:
43
43
repository: nmckinley/concourse-github-pr-resource
44
- tag: v0.1.8
44
+ tag: v0.1.10
45
45
46
46
- name: gcs-resource
47
47
type: docker-image
@@ -172,21 +172,26 @@ jobs:
172
172
version: every
173
173
trigger: true
174
174
params:
175
- fetch_merge: true
175
+ fetch_merge: true
176
176
# consumes: magic-modules (because that's where the code is)
177
177
# products: patches
178
- - task: get-merged-patches
179
- file: magic-modules/.ci/magic-modules/get-merged-patches.yml
180
- params:
181
- GH_TOKEN: ((github-account.password))
182
- # consumes: magic-modules (detached HEAD)
183
- # produces: magic-modules-branched (new branch, with submodule)
184
- - task: branch-magic-modules
185
- file: magic-modules/.ci/magic-modules/branch.yml
186
- params:
187
- GH_TOKEN: ((github-account.password))
188
- CREDS: ((repo-key.private_key))
189
- ALL_SUBMODULES: {{' '.join(all_submodules)}}
178
+ - aggregate:
179
+ - task: get-merged-patches
180
+ file: magic-modules/.ci/magic-modules/get-merged-patches.yml
181
+ params:
182
+ GH_TOKEN: ((github-account.password))
183
+ # consumes: magic-modules (detached HEAD)
184
+ # produces: magic-modules-branched (new branch, with submodule)
185
+ - task: branch-magic-modules
186
+ file: magic-modules/.ci/magic-modules/branch.yml
187
+ params:
188
+ GH_TOKEN: ((github-account.password))
189
+ CREDS: ((repo-key.private_key))
190
+ ALL_SUBMODULES: {{' '.join(all_submodules)}}
191
+ - put: magic-modules-new-prs
192
+ params:
193
+ status: pending
194
+ path: magic-modules
190
195
- aggregate:
191
196
{% if terraform_enabled %}
192
197
- do:
@@ -253,6 +258,12 @@ jobs:
253
258
force: true
254
259
{% endfor %}
255
260
{% endif %}
261
+ on_failure:
262
+ put: magic-modules-new-prs
263
+ params:
264
+ status: failed
265
+ context: code-generation
266
+ path: magic-modules
256
267
257
268
# consumes: magic-modules-branched
258
269
# produces: magic-modules-submodules
@@ -286,6 +297,15 @@ jobs:
286
297
passed: [mm-generate]
287
298
- task: test
288
299
file: magic-modules/.ci/unit-tests/task.yml
300
+ on_failure:
301
+ do:
302
+ - get: magic-modules-new-prs
303
+ passed: [mm-generate]
304
+ - put: magic-modules-new-prs
305
+ params:
306
+ status: failed
307
+ context: terraform-tests
308
+ path: magic-modules-new-prs
289
309
{% endif %}
290
310
{% if ansible_enabled %}
291
311
- name: ansible-test
@@ -298,6 +318,15 @@ jobs:
298
318
passed: [mm-generate]
299
319
- task: test
300
320
file: magic-modules/.ci/unit-tests/ansible.yml
321
+ on_failure:
322
+ do:
323
+ - get: magic-modules-new-prs
324
+ passed: [mm-generate]
325
+ - put: magic-modules-new-prs
326
+ params:
327
+ status: failed
328
+ context: ansible-tests
329
+ path: magic-modules-new-prs
301
330
{% endif %}
302
331
- name: puppet-test
303
332
plan:
@@ -320,6 +349,15 @@ jobs:
320
349
EXCLUDE_PATTERN: {{','.join(puppet_test_excludes[module])}}
321
350
{%- endif %}
322
351
{% endfor %}
352
+ on_failure:
353
+ do:
354
+ - get: magic-modules-new-prs
355
+ passed: [mm-generate]
356
+ - put: magic-modules-new-prs
357
+ params:
358
+ status: failed
359
+ context: puppet-tests
360
+ path: magic-modules-new-prs
323
361
324
362
- name: chef-test
325
363
plan:
@@ -342,6 +380,15 @@ jobs:
342
380
EXCLUDE_PATTERN: {{','.join(chef_test_excludes[module])}}
343
381
{%- endif %}
344
382
{% endfor %}
383
+ on_failure:
384
+ do:
385
+ - get: magic-modules-new-prs
386
+ passed: [mm-generate]
387
+ - put: magic-modules-new-prs
388
+ params:
389
+ status: failed
390
+ context: chef-tests
391
+ path: magic-modules-new-prs
345
392
346
393
- name: create-prs
347
394
plan:
@@ -396,6 +443,7 @@ jobs:
396
443
put: magic-modules-new-prs
397
444
params:
398
445
status: failure
446
+ context: pr-creation
399
447
path: mm-initial-pr
400
448
# This will be a no-op the first time through the pipeline. This pushes the updated
401
449
# branch named "codegen-pr-$MM_PR_NUMBER" to the downstream terraform repo. The
0 commit comments