public class ThemisReportStep
extends org.jenkinsci.plugins.workflow.steps.Step
To add in a pipeline, use the keyword themisReport
:
themisReport(instanceName: 'Some instance', sourceKey: 'key', reports: [[type: 'type', path: 'path']])
Modifier and Type | Class and Description |
---|---|
static class |
ThemisReportStep.DescriptorImpl
Descriptor for
ThemisReportStep . |
Constructor and Description |
---|
ThemisReportStep(String instanceName,
String sourceKey)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
List<Map<String,String>> |
getReports() |
boolean |
isFailBuild() |
void |
setFailBuild(boolean failBuild) |
void |
setReports(List<Map<String,String>> reports)
Sets the reports
|
org.jenkinsci.plugins.workflow.steps.StepExecution |
start(org.jenkinsci.plugins.workflow.steps.StepContext context) |
@DataBoundConstructor public ThemisReportStep(String instanceName, String sourceKey)
instanceName
- the name of the Themis instance to use, as specified in the Jenkins global configurationsourceKey
- the unique key of the source for which to send reportspublic List<Map<String,String>> getReports()
ThemisReportAction.TYPE_KEY
as key and the report path with ThemisReportAction.PATH_KEY
as key@DataBoundSetter public void setReports(List<Map<String,String>> reports)
reports
- the reports as a list of map that contains the report type with
ThemisReportAction.TYPE_KEY
as key and the report path with
ThemisReportAction.PATH_KEY
as keypublic boolean isFailBuild()
@DataBoundSetter public void setFailBuild(boolean failBuild)
failBuild
- true
if the build should failCopyright © 2016–2018. All rights reserved.