I am using the Jenkins hidden parameter plugin but I cant find the syntax to write it in DSL like I am doing with other parameters.
Is there any way to reflect hidden parameter in DSL?
I am using the Jenkins hidden parameter plugin but I cant find the syntax to write it in DSL like I am doing with other parameters.
Is there any way to reflect hidden parameter in DSL?
BEfore using the declarative pipeline syntax (described in
jenkinsci/pipeline-model-definition-plugin
), you would have used:But with the pure DSL pipeline syntax, this is not yet supported (April 2017).
The last issue though points out to JENKINS-29922 (Promote delegates of metasteps to top-level functions, deprecate
$class
) and adds the comment:While that is encrypted, that is not exactly "hidden" though.
Job DSL has no built-in support for the Hidden Parameter plugin, so it's not mentioned in the API viewer. But it's supported by the Automatically Generated DSL: