public class ThreadFixPublisher extends hudson.tasks.Recorder implements jenkins.tasks.SimpleBuildStep, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadFixPublisher.DescriptorImpl
Descriptor for
ThreadFixPublisher. |
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
ThreadFixPublisher(String appId,
List<ScanFile> scanFiles) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId()
Returns the configured application ID
|
ThreadFixPublisher.DescriptorImpl |
getDescriptor()
Returns the
ThreadFixPublisher descriptor. |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
Returns NONE since this is not dependent on the last step
|
List<ScanFile> |
getScanFiles()
Returns the configured scan file
|
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
This is what will be executed when the job is build.
|
boolean |
uploadScanFile(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
String scanFile,
String threadFixServerUrl,
String token)
Uploads the parameter scan file via the parameter ThreadFixService
|
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuildpublic void perform(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionpublic boolean uploadScanFile(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
String scanFile,
String threadFixServerUrl,
String token)
throws IOException,
InterruptedException
build - workspace - launcher - listener - scanFile - IOExceptionInterruptedExceptionpublic ThreadFixPublisher.DescriptorImpl getDescriptor()
ThreadFixPublisher descriptor. This doesn't do
anything special other than casting the return value for convenience.getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic String getAppId()
Copyright © 2014–2017. All rights reserved.