javaposse.jobdsl.dsl.helpers.step.MavenContext.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
import javaposse.jobdsl.dsl.helpers.common.MavenContext.LocalRepositoryLocation
class MavenContext implements javaposse.jobdsl.dsl.helpers.common.MavenContext {
String rootPOM
List goals = []
List mavenOpts = []
LocalRepositoryLocation localRepositoryLocation
String mavenInstallation = '(Default)'
Closure configureBlock
@Override
def rootPOM(String rootPOM) {
this.rootPOM = rootPOM
}
@Override
def goals(String goals) {
this.goals << goals
}
@Override
def mavenOpts(String mavenOpts) {
this.mavenOpts << mavenOpts
}
@Override
def localRepository(LocalRepositoryLocation location) {
this.localRepositoryLocation = location
}
@Override
def mavenInstallation(String name) {
this.mavenInstallation = name
}
def configure(Closure closure) {
this.configureBlock = closure
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy