Class StageReporting
java.lang.Object
io.jenkins.plugins.gerritchecksapi.StageReporting
- All Implemented Interfaces:
Serializable
The settings controlling which stages of a Pipeline build are reported to Gerrit.
A value that is left as INHERIT is taken from the enclosing folder, then from the
global configuration and finally from defaults(), which reports every stage.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStageReporting(Inheritable reportStages, Inheritable reportStagesWhileBuilding, StageForm stageForm, StageDepth stageDepth, int maxDepth, Inheritable skipDeclarativeStages) -
Method Summary
Modifier and TypeMethodDescriptionstatic StageReportingdefaults()The settings used where nothing is configured at all.intbooleanWhether the stages of a build are reported at all.booleanWhether the stages of a build that is still building are reported.booleanWhether the stages that Jenkins itself adds to a declarative pipeline are left out.intThe deepest nesting of stages that is reported, where 1 is a stage that is not nested inside another stage.voidoverlay(StageReporting other) Copies the values that the other settings set on top of these.booleanWhether the stages are reported as check runs of their own rather than as results of the run of their build.voidsetMaxDepth(int maxDepth) voidsetReportStages(Inheritable reportStages) voidsetReportStagesWhileBuilding(Inheritable reportStagesWhileBuilding) voidsetSkipDeclarativeStages(Inheritable skipDeclarativeStages) voidsetStageDepth(StageDepth stageDepth) voidsetStageForm(StageForm stageForm)
-
Constructor Details
-
StageReporting
public StageReporting() -
StageReporting
public StageReporting(Inheritable reportStages, Inheritable reportStagesWhileBuilding, StageForm stageForm, StageDepth stageDepth, int maxDepth, Inheritable skipDeclarativeStages)
-
-
Method Details
-
defaults
The settings used where nothing is configured at all. -
overlay
Copies the values that the other settings set on top of these. Settings that are left to be inherited keep the value they had, so that earlier settings act as the fallback. -
isReportStagesEnabled
public boolean isReportStagesEnabled()Whether the stages of a build are reported at all. -
isReportStagesWhileBuildingEnabled
public boolean isReportStagesWhileBuildingEnabled()Whether the stages of a build that is still building are reported. Left out, the stages of a build are reported once it has finished, so that the results of a run do not change while it runs. -
reportsStagesAsCheckRuns
public boolean reportsStagesAsCheckRuns()Whether the stages are reported as check runs of their own rather than as results of the run of their build. -
maxReportedDepth
public int maxReportedDepth()The deepest nesting of stages that is reported, where 1 is a stage that is not nested inside another stage. A value of 0 means that every stage is reported, however deeply nested. -
isSkipDeclarativeStagesEnabled
public boolean isSkipDeclarativeStagesEnabled()Whether the stages that Jenkins itself adds to a declarative pipeline are left out. -
getReportStages
-
setReportStages
-
getReportStagesWhileBuilding
-
setReportStagesWhileBuilding
-
getStageForm
-
setStageForm
-
getStageDepth
-
setStageDepth
-
getMaxDepth
public int getMaxDepth() -
setMaxDepth
public void setMaxDepth(int maxDepth) -
getSkipDeclarativeStages
-
setSkipDeclarativeStages
-