public class ModelASTStage extends ModelASTStageBase
ModelASTBranchs it may contain.ModelASTPipelineDef| Constructor and Description |
|---|
ModelASTStage(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<ModelASTBranch> |
getBranches() |
Boolean |
getFailFast() |
ModelASTMatrix |
getMatrix() |
String |
getName() |
ModelASTParallel |
getParallel() |
List<ModelASTStage> |
getParallelContent()
Deprecated.
|
ModelASTStages |
getStages() |
int |
hashCode() |
protected Object |
readResolve() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setBranches(List<ModelASTBranch> branches) |
void |
setFailFast(Boolean f) |
void |
setMatrix(ModelASTMatrix s) |
void |
setName(String name) |
void |
setParallel(ModelASTParallel s) |
void |
setParallelContent(List<ModelASTStage> parallelContent)
Deprecated.
|
void |
setStages(ModelASTStages stages) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
net.sf.json.JSONObject |
toJSON()
Translates this element and any children it may have into JSON conforming to the schema.
|
String |
toString() |
void |
validate(ModelValidator validator)
Called to do whatever validation is necessary for this element.
|
void |
validate(ModelValidator validator,
boolean isWithinParallel) |
getAgent, getEnvironment, getInput, getOptions, getPost, getTools, getWhen, setAgent, setEnvironment, setInput, setOptions, setPost, setTools, setWhengetSourceLocation, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validatepublic ModelASTStage(Object sourceLocation)
protected Object readResolve() throws IOException
IOException@NonNull public net.sf.json.JSONObject toJSON()
ModelASTElementtoJSON in interface ModelASTMarkerInterfacetoJSON in class ModelASTStageBaseJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.public void validate(@NonNull
ModelValidator validator)
ModelASTElementvalidate in interface ModelASTMarkerInterfacevalidate in class ModelASTStageBasevalidator - A ModelValidator to use for more complicated validation.public void validate(ModelValidator validator, boolean isWithinParallel)
@NonNull public String toGroovy()
ModelASTElementtoGroovy in interface ModelASTMarkerInterfacetoGroovy in class ModelASTStageBaseString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMarkerInterfaceremoveSourceLocation in class ModelASTStageBasepublic String getName()
public void setName(String name)
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 ModelASTMatrix getMatrix()
public void setMatrix(ModelASTMatrix s)
@Deprecated public List<ModelASTStage> getParallelContent()
@Deprecated public void setParallelContent(List<ModelASTStage> parallelContent)
public String toString()
ModelASTElementtoString in class ModelASTStageBasepublic boolean equals(Object o)
ModelASTElementequals in class ModelASTStageBasepublic int hashCode()
ModelASTElementhashCode in class ModelASTStageBaseCopyright © 2016–2021. All rights reserved.