Class WithMavenStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.pipeline.maven.WithMavenStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class WithMavenStep
extends org.jenkinsci.plugins.workflow.steps.Step
Configures maven environment to use within a pipeline job by calling
sh mvn or bat mvn.
The selected maven installation will be configured and prepended to the path.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJdk()getMaven()Return all the registered Maven publishersvoidsetGlobalMavenSettingsConfig(String globalMavenSettingsConfig) voidsetGlobalMavenSettingsFilePath(String globalMavenSettingsFilePath) voidvoidvoidsetMavenLocalRepo(String mavenLocalRepo) voidsetMavenOpts(String mavenOpts) voidsetMavenSettingsConfig(String mavenSettingsConfig) voidsetMavenSettingsFilePath(String mavenSettingsFilePath) voidsetOptions(List<MavenPublisher> options) voidsetPublisherStrategy(MavenPublisherStrategy publisherStrategy) voidsetTempBinDir(String tempBinDir) voidsetTraceability(Boolean traceability) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Constructor Details
-
WithMavenStep
@DataBoundConstructor public WithMavenStep()
-
-
Method Details
-
getTempBinDir
-
setTempBinDir
-
getMavenSettingsConfig
-
setMavenSettingsConfig
-
getMavenSettingsFilePath
-
setMavenSettingsFilePath
-
getGlobalMavenSettingsConfig
-
setGlobalMavenSettingsConfig
-
getGlobalMavenSettingsFilePath
-
setGlobalMavenSettingsFilePath
-
getMaven
-
setMaven
-
getMavenOpts
-
setMavenOpts
-
getJdk
-
setJdk
-
getMavenLocalRepo
-
setMavenLocalRepo
-
getPublisherStrategy
-
setPublisherStrategy
-
isTraceability
-
getTraceability
-
setTraceability
-
getOptions
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>- Overrides:
getDescriptorin classorg.jenkinsci.plugins.workflow.steps.Step
-
getOptionsDescriptors
public DescriptorExtensionList<MavenPublisher,MavenPublisher.DescriptorImpl> getOptionsDescriptors()Return all the registered Maven publishers -
setOptions
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Throws:
Exception
-