![Darragh Bailey](/assets/img/avatar_default.png)
Remove the test options suppressing ignoring differences in whitespace outputted in the XML to allow capturing of issues where the code incorrectly adds or removes significant whitespace. Add a helper function to deal with the edge case of parsing XML directly that contains non significant whitespace to avoid accidentally adding excess whitespace when minidom outputs the resulting document. Change-Id: I9936042cd82c204ba2b3c19f575703e33564f7fd
25 lines
980 B
JSON
25 lines
980 B
JSON
[
|
|
{
|
|
"job-template": {
|
|
"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"
|
|
},
|
|
{
|
|
"shell": "#!/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\n"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"project": {
|
|
"name": "test-job-template-1",
|
|
"num": 1,
|
|
"jobs": [
|
|
"test-job-include-raw-{num}"
|
|
]
|
|
}
|
|
}
|
|
]
|