I am trying to find a way to make use of a groovy variable in stead of using a hardcoded template name
Current code looks like: '${SCRIPT, template="groovy-html.template"}' and I tried to use nested variable expansion but I still got an error.
Example:
def body = '''${SCRIPT, template="${template}"}'''
Groovy Template file [${template}] was not found in $JENKINS_HOME/email-templates. Generated using text.jelly template.
My call can be seen at https://github.com/pycontribs/powertape/blob/master/vars/notifyBuild.groovy#L47