summaryrefslogtreecommitdiff
path: root/test/asset/repo/checkout.yaml
blob: f1bcbc841975ecf98a68e419dc4ef9390ca905e1 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
repo r1:
repo r2:
repo r3:

job checkout_subtree:
  checkout:
    - repo: r1
      dest: d1

    - repo: r2
      subtree: s1
      dest: d2_s1

  shell:
    - find \! -name 'list?' -type f > list1

  artifact out:
    path: list1


job checkout_common_root:
  checkout:
    - repo: r1
      dest: d1

    - repo: r2
      subtree: s1
      dest: d2_s1

    - repo: r2
      subtree: s2
      dest: d2_s2

  shell:
    - find \! -name 'list?' -type f > list2

  artifact out:
    path: list2


job checkout_common_subtree:
  checkout:
    - repo: r3
      subtree: a/b/s1
      dest: d3_s1

    - repo: r3
      subtree: a/b/c/s2
      dest: d3_s2

  shell:
    - find \! -name 'list?' -type f > list3

  artifact out:
    path: list3


job checkout_common_subtree2:
  checkout:
    - repo: r1
      dest: d1

    - repo: r2
      subtree: s1
      dest: d2_s1

    - repo: r3
      subtree: a/b/c/s2
      dest: d3_s2

    - repo: r3
      subtree: a/b/c/s3
      dest: d3_s3

  shell:
    - find \! -name 'list?' -type f > list4

  artifact out:
    path: list4


job combined_subtree:
  uses:
    - checkout_common_root.out
    - checkout_common_subtree2.out


job combined_all:
  uses:
    - checkout_subtree.out
    - checkout_common_root.out
    - checkout_common_subtree.out
    - checkout_common_subtree2.out