Class WriteMavenPomStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.pipeline.utility.steps.maven.WriteMavenPomStep
-
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class WriteMavenPomStep extends org.jenkinsci.plugins.workflow.steps.StepWrites a maven pom file to the current working directory.- Author:
- Robert Sandell <rsandell@cloudbees.com>.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWriteMavenPomStep.DescriptorImplstatic classWriteMavenPomStep.Execution-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WriteMavenPomStep(org.apache.maven.model.Model model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFile()Optional name of the maven file to write.org.apache.maven.model.ModelgetModel()voidsetFile(String file)Optional name of the maven file to write.org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
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()
-
-