summaryrefslogtreecommitdiff
path: root/tests/fixtures/layouts/nodeset-fallback.yaml
blob: 01869537e940853fb5ad610cf4d243450bcdb425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
- pipeline:
    name: check
    manager: independent
    trigger:
      gerrit:
        - event: patchset-created
    success:
      gerrit:
        Verified: 1
    failure:
      gerrit:
        Verified: -1

- nodeset:
    name: fast-nodeset
    nodes:
      - label: fast-label
        name: controller

- nodeset:
    name: red-nodeset
    nodes:
      - label: red-label
        name: controller

- nodeset:
    name: blue-nodeset
    nodes:
      - label: blue-label
        name: controller

# This adds an unused second level of alternatives to verify we are
# able to flatten it.
- nodeset:
    name: red-or-blue-nodeset
    alternatives:
      - red-nodeset
      - blue-nodeset

# Test alternatives by name or anonymous nodeset
- nodeset:
    name: fast-or-slow
    alternatives:
      - fast-nodeset
      - nodes:
          label: slow-label
          name: controller
      - red-or-blue-nodeset

- job:
    name: base
    parent: null
    run: playbooks/base.yaml

- job:
    name: check-job
    nodeset: fast-or-slow

- project:
    name: org/project
    check:
      jobs:
        - check-job
    gate:
      jobs:
        - check-job