1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

No backticks in case we have the empty string as a default value

This commit is contained in:
Marcus Holl 2018-10-29 15:25:16 +01:00
parent f09cd638bb
commit 1bc9ed4488

View File

@ -18,7 +18,7 @@ class TemplateHelper {
parameters.keySet().toSorted().each {
def props = parameters.get(it)
t += "| `${it}` | ${props.required ? 'yes' : 'no'} | `${(props.defaultValue ?: '') }` | ${props.value ?: ''} |\n"
t += "| `${it}` | ${props.required ? 'yes' : 'no'} | ${(props.defaultValue ? '`' + props.defaultValue + '`' : '') } | ${props.value ?: ''} |\n"
}
t