Hi all,
I confess I do not know about Groovy at all and have been trying to develop a job DSL by trial and error. I have a seed job that takes parameters, and then kicks off the DSL. I have the variable substitutions working fine, except within the actual shell() clause. What I have is like this:
The environment variables are set like
Build_Object=master
HTML_Map=administration.ditamap
Toolchain=d4p
The shell clause is like this, inside the job definition:
shell('''
#!/bin/bash
./jenkins_build_docs.sh -b ${Build_Object} $FILTER -m ${HTML_Map} -t ${Toolchain}
'''
But within the generated job, the shell script looks like this:
#!/bin/bash
./jenkins_build_docs.sh -b ${Build_Object} -m ${HTML_Map} -t ${Toolchain}
I expect it to look like this:
#!/bin/bash
./jenkins_build_docs.sh -b master -m administration.ditamap -t d4p
Does anybody have any idea about the (probably really silly) thing I am doing wrong?