0 votes
in Jenkins by
Explain DSL Jenkins?

1 Answer

0 votes
by

Jenkins DSL (Domain Specific Language) is a plugin through which jobs can be defined in a programmatic manner which is human readable. Through this plugin, the UI configurations are intuitively translated into code. That way, you can create a version for the job and also maintain the history of the changes. The converted code is in a Groovy-based language. Example,

if you have a parameter definition as below in the config.xml file:

<hudson.model.StringParameterDefinition>

 <name>MESSAGE</name>

 <defaultValue>Welcome to Hackr.io</defaultValue>

</hudson.model.StringParameterDefinition>

The corresponding code will look like:

parameters {

 stringParam('MESSAGE', 'Welcome to Hackr.io')

}

Related questions

0 votes
asked May 1, 2021 in Jenkins by rajeshsharma
+1 vote
asked May 13, 2020 in Jenkins by Robindeniel
...