summaryrefslogtreecommitdiffstats
path: root/tests/localyaml/fixtures/include-raw-escaped-multi001.json
blob: 15d0bb2984f653a910f1b37a87a67ab9dda3dbf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[
    {
        "template-job": {
            "name": "test-job-include-raw-{num}",
            "builders": [
                {
                    "shell": "#!/bin/bash\n#\n# Sample script showing how the yaml include-raw tag can be used\n# to inline scripts that are maintained outside of the jenkins\n# job yaml configuration.\n\necho \"hello world\"\n\nexit 0\n\n#!/bin/bash\n#\n# sample script to check that brackets aren't escaped\n# when using the include-raw application yaml tag\n\nVAR1=\"hello\"\nVAR2=\"world\"\nVAR3=\"${{VAR1}} ${{VAR2}}\"\n\n[[ -n \"${{VAR3}}\" ]] && {{\n    # this next section is executed as one\n    echo \"${{VAR3}}\"\n    exit 0\n}}\n"
                }
            ]
        }
    },
    {
        "project": {
            "name": "test-job-template-1",
            "num": 1,
            "jobs": [
                "test-job-include-raw-{num}"
            ]
        }
    }
]