javaposse.jobdsl.dsl.helpers.BuildParametersContextHelper.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of job-dsl-core Show documentation
Show all versions of job-dsl-core Show documentation
Javaposse jenkins job-dsl-core
package javaposse.jobdsl.dsl.helpers
import javaposse.jobdsl.dsl.JobType
import javaposse.jobdsl.dsl.WithXmlAction
class BuildParametersContextHelper extends AbstractContextHelper {
BuildParametersContextHelper(List withXmlActions, JobType jobType) {
super(withXmlActions, jobType)
}
def parameters(Closure closure) {
execute(closure, new BuildParametersContext())
}
Closure generateWithXmlClosure(BuildParametersContext context) {
return { Node project ->
def parameterDefinitions = project / 'properties' / 'hudson.model.ParametersDefinitionProperty' / parameterDefinitions
context.buildParameterNodes.values().each {
parameterDefinitions << it
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy