public class R7InsightBuildWrapper
extends hudson.tasks.BuildWrapper
| Modifier and Type | Class and Description |
|---|---|
static class |
R7InsightBuildWrapper.DescriptorImpl |
| Constructor and Description |
|---|
R7InsightBuildWrapper(String token,
String region,
String endpoint)
Create a new
R7InsightBuildWrapper. |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
decorateLogger(hudson.model.AbstractBuild build,
OutputStream logger) |
R7InsightBuildWrapper.DescriptorImpl |
getDescriptor() |
String |
getEndpoint()
Gets the data ingestion endpoint
|
String |
getRegion()
Gets the region to transmit the log data
|
String |
getToken()
Gets the Rapid7 InsightOps token
|
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
@DataBoundConstructor public R7InsightBuildWrapper(String token, String region, String endpoint)
R7InsightBuildWrapper.token - The token for the Rapid7 InsightOps logregion - The storage region to transmit the logsendpoint - The data ingestion endpoint to transmit the logs topublic String getToken()
public String getRegion()
public String getEndpoint()
public OutputStream decorateLogger(hudson.model.AbstractBuild build, OutputStream logger)
decorateLogger in class hudson.tasks.BuildWrapperpublic hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
setUp in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionpublic R7InsightBuildWrapper.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>Copyright © 2016–2018. All rights reserved.