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.
  • Constructor Details

    • WithMavenStep

      @DataBoundConstructor public WithMavenStep()
  • Method Details

    • 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 interface Describable<org.jenkinsci.plugins.workflow.steps.Step>
      Overrides:
      getDescriptor in class org.jenkinsci.plugins.workflow.steps.Step
    • getOptionsDescriptors

      Return all the registered Maven publishers
    • setOptions

      @DataBoundSetter public void setOptions(List<MavenPublisher> options)
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step
      Throws:
      Exception