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 callingsh mvn
orbat mvn
. The selected maven installation will be configured and prepended to the path.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WithMavenStep.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WithMavenStep()
-
Method Summary
-
-
-
Method Detail
-
getTempBinDir
public String getTempBinDir()
-
setTempBinDir
@DataBoundSetter public void setTempBinDir(String tempBinDir)
-
getMavenSettingsConfig
public String getMavenSettingsConfig()
-
setMavenSettingsConfig
@DataBoundSetter public void setMavenSettingsConfig(String mavenSettingsConfig)
-
getMavenSettingsFilePath
public String getMavenSettingsFilePath()
-
setMavenSettingsFilePath
@DataBoundSetter public void setMavenSettingsFilePath(String mavenSettingsFilePath)
-
getGlobalMavenSettingsConfig
public String getGlobalMavenSettingsConfig()
-
setGlobalMavenSettingsConfig
@DataBoundSetter public void setGlobalMavenSettingsConfig(String globalMavenSettingsConfig)
-
getGlobalMavenSettingsFilePath
public String getGlobalMavenSettingsFilePath()
-
setGlobalMavenSettingsFilePath
@DataBoundSetter public void setGlobalMavenSettingsFilePath(String globalMavenSettingsFilePath)
-
getMaven
public String getMaven()
-
setMaven
@DataBoundSetter public void setMaven(String maven)
-
getMavenOpts
public String getMavenOpts()
-
setMavenOpts
@DataBoundSetter public void setMavenOpts(String mavenOpts)
-
getJdk
public String getJdk()
-
setJdk
@DataBoundSetter public void setJdk(String jdk)
-
getMavenLocalRepo
public String getMavenLocalRepo()
-
setMavenLocalRepo
@DataBoundSetter public void setMavenLocalRepo(String mavenLocalRepo)
-
getPublisherStrategy
public MavenPublisherStrategy getPublisherStrategy()
-
setPublisherStrategy
@DataBoundSetter public void setPublisherStrategy(MavenPublisherStrategy publisherStrategy)
-
isTraceability
public Boolean isTraceability()
-
setTraceability
@DataBoundSetter public void setTraceability(Boolean traceability)
-
getOptions
public List<MavenPublisher> getOptions()
-
getDescriptor
public WithMavenStep.DescriptorImpl 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
@DataBoundSetter public void setOptions(List<MavenPublisher> options)
-
-