Class InteractiveOutputStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
io.jenkins.plugins.interactiveinput.step.InteractiveOutputStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>,Serializable
public class InteractiveOutputStep
extends org.jenkinsci.plugins.workflow.steps.Step
implements Serializable
The
interactiveOutput pipeline step: publish per-build statistics (cost, carbon footprint,
resource usage, …) as KPI cards + a table on the build page, and feed a per-job trend chart.
interactiveOutput(reportName: 'Cost report', metrics: [
[label: 'Total cost', value: '12.40', unit: 'USD', key: 'cost'],
[label: 'CPU minutes', value: '318', unit: 'min', key: 'cpu'],
[label: 'Carbon', value: '0.42', unit: 'kgCO2e', key: 'carbon']
])
Metrics whose value is numeric and that carry a key also feed the per-job trend chart
(the key identifies the series across builds). The data is stored in the build's
InteractiveOutputBuildAction (persisted in
build.xml). The step is synchronous and returns the report name.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNotify()voidsetChartType(String chartType) voidsetMetrics(List<Metric> metrics) voidsetNotify(boolean notify) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
InteractiveOutputStep
-
-
Method Details
-
getReportName
-
getMetrics
-
setMetrics
-
isNotify
public boolean isNotify() -
setNotify
@DataBoundSetter public void setNotify(boolean notify) -
getChartType
- Returns:
- the per-job chart type:
line(default),bar,pieortimeseries.
-
setChartType
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Throws:
Exception
-