Class WriteMavenPomStep

  • All Implemented Interfaces:
    ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

    public class WriteMavenPomStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Writes a maven pom file to the current working directory.
    Author:
    Robert Sandell <rsandell@cloudbees.com>.
    • Constructor Detail

      • WriteMavenPomStep

        @DataBoundConstructor
        public WriteMavenPomStep​(org.apache.maven.model.Model model)
    • Method Detail

      • getFile

        public String getFile()
        Optional name of the maven file to write. If empty 'pom.xml' in the current working directory will be used.
        Returns:
        file name
      • setFile

        @DataBoundSetter
        public void setFile​(String file)
        Optional name of the maven file to write. If empty 'pom.xml' in the current working directory will be used.
        Parameters:
        file - file name
      • getModel

        @CheckForNull
        public org.apache.maven.model.Model getModel()
      • 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