I\'m writing a Jenkins pipeline job with quite a few parameters and I\'m looking for a way to visually group them together so they will be easier to understand
for dsl you can specify:
String sectionHeaderStyleCss = ' color: white; background: green; font-family: Roboto, sans-serif !important; padding: 5px; text-align: center; '
String separatorStyleCss = ' border: 0; border-bottom: 1px dashed #ccc; background: #999; '
pipelineJob("Foo-job") {
description("FOO with separators")
parameters {
parameterSeparatorDefinition {
name('FOO_1')
separatorStyle(separatorStyleCss)
sectionHeader('FOO_1')
sectionHeaderStyle(sectionHeaderStyleCss)
}
Don't make the silly mistake of using the name sectionHeaderStyle
as per example in your dsl as that will conflict with the constructor!
which you will obviously spot when you see the error:
No signature of method: java.lang.String.call() is applicable for argument types: (java.lang.String) values: []