public final class ModelASTStage extends ModelASTElement
ModelASTBranchs it may contain.ModelASTPipelineDef| Modifier and Type | Field and Description |
|---|---|
protected ModelASTAgent |
agent |
protected ModelASTEnvironment |
environment |
protected String |
name |
protected ModelASTPostStage |
post |
protected ModelASTTools |
tools |
protected ModelASTWhen |
when |
| Constructor and Description |
|---|
ModelASTStage(Object sourceLocation) |
getSourceLocation, setSourceLocationprotected String name
protected ModelASTAgent agent
protected ModelASTPostStage post
protected ModelASTWhen when
protected ModelASTTools tools
protected ModelASTEnvironment environment
public ModelASTStage(Object sourceLocation)
protected Object readResolve() throws IOException
IOExceptionpublic net.sf.json.JSONObject toJSON()
ModelASTElementtoJSON in class ModelASTElementJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.public void validate(@Nonnull ModelValidator validator)
ModelASTElementvalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.public void validate(ModelValidator validator, boolean isWithinParallel)
public String toGroovy()
ModelASTElementtoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in class ModelASTElementpublic String getName()
public void setName(String name)
public ModelASTAgent getAgent()
public void setAgent(ModelASTAgent agent)
public ModelASTPostStage getPost()
public void setPost(ModelASTPostStage post)
public ModelASTWhen getWhen()
public void setWhen(ModelASTWhen when)
public ModelASTTools getTools()
public void setTools(ModelASTTools tools)
public ModelASTEnvironment getEnvironment()
public void setEnvironment(ModelASTEnvironment environment)
public ModelASTStages getStages()
public void setStages(ModelASTStages stages)
public List<ModelASTBranch> getBranches()
public void setBranches(List<ModelASTBranch> branches)
public Boolean getFailFast()
public void setFailFast(Boolean f)
public ModelASTParallel getParallel()
public void setParallel(ModelASTParallel s)
public ModelASTOptions getOptions()
public void setOptions(ModelASTOptions options)
public ModelASTStageInput getInput()
public void setInput(ModelASTStageInput input)
@Deprecated public List<ModelASTStage> getParallelContent()
@Deprecated public void setParallelContent(List<ModelASTStage> parallelContent)
public String toString()
ModelASTElementtoString in class ModelASTElementpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTElementpublic int hashCode()
ModelASTElementhashCode in class ModelASTElementCopyright © 2016–2019. All rights reserved.