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.Step
Writes 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 class
WriteMavenPomStep.DescriptorImpl
static class
WriteMavenPomStep.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 String
getFile()
Optional name of the maven file to write.org.apache.maven.model.Model
getModel()
void
setFile(String file)
Optional name of the maven file to write.org.jenkinsci.plugins.workflow.steps.StepExecution
start(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()
-
-