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 classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJdk()
getMaven()
Return all the registered Maven publishersvoid
setGlobalMavenSettingsConfig
(String globalMavenSettingsConfig) void
setGlobalMavenSettingsFilePath
(String globalMavenSettingsFilePath) void
void
void
setMavenLocalRepo
(String mavenLocalRepo) void
setMavenOpts
(String mavenOpts) void
setMavenSettingsConfig
(String mavenSettingsConfig) void
setMavenSettingsFilePath
(String mavenSettingsFilePath) void
setOptions
(List<MavenPublisher> options) void
setPublisherStrategy
(MavenPublisherStrategy publisherStrategy) void
setTempBinDir
(String tempBinDir) void
setTraceability
(Boolean traceability) org.jenkinsci.plugins.workflow.steps.StepExecution
start
(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
-
setTraceability
-
getOptions
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>
- Overrides:
getDescriptor
in 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:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-