summaryrefslogtreecommitdiffstats
path: root/tests/yamlparser/fixtures/string_join.yaml
blob: 0288d4b2107c06c9332295606dc66d18b9ed51e9 (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
- project:
    name: string_join_example
    jobs:
        - 'string-join-data-{name}':
            name: set1
            files: !join:
              - ','
              -
                - /path/to/file1
                - /path/to/file2
                - /path/to/file3
                - /path/to/file4
                - /path/to/file5
                - /path/to/file6
                - /path/to/file7
                - /path/to/file8
                - /path/to/file9
                - /path/to/file10
                - /path/to/file11
                - /path/to/file12
                - /path/to/file13
                - /path/to/file14
                - /path/to/file15
                - /path/to/file16
                - /path/to/file17
                - /path/to/file18
                - /path/to/file19
                - /path/to/file20
        - 'string-join-data-{name}':
            name: set2
            files: !join:
              - ','
              -
                - /another/different/path/to/file1
                - /another/different/path/to/file2
                - /another/different/path/to/file3
                - /another/different/path/to/file4
                - /another/different/path/to/file5
                - /another/different/path/to/file6
                - /another/different/path/to/file7
                - /another/different/path/to/file8
                - /another/different/path/to/file9
                - /another/different/path/to/file10
                - /another/different/path/to/file11
                - /another/different/path/to/file12
                - /another/different/path/to/file13
                - /another/different/path/to/file14
                - /another/different/path/to/file15
                - /another/different/path/to/file16
                - /another/different/path/to/file17
                - /another/different/path/to/file18
                - /another/different/path/to/file19
                - /another/different/path/to/file20

- job-template:
    name: 'string-join-data-{name}'
    properties:
      - inject:
          keep-system-variables: true
          properties-content: |
            FILE_LIST={files}
    builders:
      - shell: |
         echo "Template name: {template-name}"
         echo "Data to be processed:"
         echo "${{INPUT_DATA}}"