javaposse.jobdsl.dsl.helpers.step.GroovyContext.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.step
class GroovyContext extends AbstractGroovyContext {
def groovyParams = []
def scriptParams = []
def props = []
def javaOpts = []
def groovyInstallation = null
def groovyParam(String param) {
groovyParams << param
}
def groovyParams(Iterable params) {
params.each { groovyParam(it) }
}
def scriptParam(String param) {
scriptParams << param
}
def scriptParams(Iterable params) {
params.each { scriptParam(it) }
}
def prop(String key, String value) {
props << "${key}=${value}"
}
def props(Map map) {
map.entrySet().each {
prop(it.key, it.value)
}
}
def javaOpt(String opt) {
javaOpts << opt
}
def javaOpts(Iterable opts) {
opts.each { javaOpt(it) }
}
def groovyInstallation(String groovyInstallationName) {
groovyInstallation = groovyInstallationName
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy