Class 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 Detail

      • WithMavenStep

        @DataBoundConstructor
        public WithMavenStep()
    • 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)
      • setPublisherStrategy

        @DataBoundSetter
        public void setPublisherStrategy​(MavenPublisherStrategy publisherStrategy)
      • isTraceability

        public Boolean isTraceability()
      • setTraceability

        @DataBoundSetter
        public void setTraceability​(Boolean traceability)
      • 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