Open vdice opened 8 years ago
We have a lot of shell scripts in the form of
#!/usr/bin/env bash set -eo pipefail <main script contents>
It would be handy to define a function that wrapped the <main script contents> in the boilerplate seen above; something like:
<main script contents>
def sh = { String script -> """ #!/usr/bin/env bash set -eo pipefail ${script} """.stripIndent() }
(Might possibly entertain overriding the existing shell dsl function to do the same.)
shell
This issue was moved to teamhephy/jenkins-jobs#12
We have a lot of shell scripts in the form of
It would be handy to define a function that wrapped the
<main script contents>
in the boilerplate seen above; something like:(Might possibly entertain overriding the existing
shell
dsl function to do the same.)