| 1 | - project: |
| 2 | name: string_join_example |
| 3 | jobs: |
| 4 | - 'string-join-data-{name}': |
| 5 | name: set1 |
| 6 | files: !join: |
| 7 | - ',' |
| 8 | - |
| 9 | - /path/to/file1 |
| 10 | - /path/to/file2 |
| 11 | - /path/to/file3 |
| 12 | - /path/to/file4 |
| 13 | - /path/to/file5 |
| 14 | - /path/to/file6 |
| 15 | - /path/to/file7 |
| 16 | - /path/to/file8 |
| 17 | - /path/to/file9 |
| 18 | - /path/to/file10 |
| 19 | - /path/to/file11 |
| 20 | - /path/to/file12 |
| 21 | - /path/to/file13 |
| 22 | - /path/to/file14 |
| 23 | - /path/to/file15 |
| 24 | - /path/to/file16 |
| 25 | - /path/to/file17 |
| 26 | - /path/to/file18 |
| 27 | - /path/to/file19 |
| 28 | - /path/to/file20 |
| 29 | - 'string-join-data-{name}': |
| 30 | name: set2 |
| 31 | files: !join: |
| 32 | - ',' |
| 33 | - |
| 34 | - /another/different/path/to/file1 |
| 35 | - /another/different/path/to/file2 |
| 36 | - /another/different/path/to/file3 |
| 37 | - /another/different/path/to/file4 |
| 38 | - /another/different/path/to/file5 |
| 39 | - /another/different/path/to/file6 |
| 40 | - /another/different/path/to/file7 |
| 41 | - /another/different/path/to/file8 |
| 42 | - /another/different/path/to/file9 |
| 43 | - /another/different/path/to/file10 |
| 44 | - /another/different/path/to/file11 |
| 45 | - /another/different/path/to/file12 |
| 46 | - /another/different/path/to/file13 |
| 47 | - /another/different/path/to/file14 |
| 48 | - /another/different/path/to/file15 |
| 49 | - /another/different/path/to/file16 |
| 50 | - /another/different/path/to/file17 |
| 51 | - /another/different/path/to/file18 |
| 52 | - /another/different/path/to/file19 |
| 53 | - /another/different/path/to/file20 |
| 54 | |
| 55 | - job-template: |
| 56 | name: 'string-join-data-{name}' |
| 57 | properties: |
| 58 | - inject: |
| 59 | keep-system-variables: true |
| 60 | properties-content: | |
| 61 | FILE_LIST={files} |
| 62 | builders: |
| 63 | - shell: | |
| 64 | echo "Template name: {template-name}" |
| 65 | echo "Data to be processed:" |
| 66 | echo "${{INPUT_DATA}}" |