Class ReadMavenPomStep

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

    public class ReadMavenPomStep
    extends org.jenkinsci.plugins.workflow.steps.Step
    Reads a maven pom file from the workspace.
    Author:
    Robert Sandell <rsandell@cloudbees.com>.
    • Constructor Detail

      • ReadMavenPomStep

        @DataBoundConstructor
        public ReadMavenPomStep()
    • Method Detail

      • 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
      • getFile

        public String getFile()
        Optional name of the maven file to read. 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 read. If empty 'pom.xml' in the current working directory will be used.
        Parameters:
        file - optional file name