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.DescriptorExtensionListImpl
jenkins.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, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
public 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.SimpleBuildStep
InterruptedException
IOException
public 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
- IOException
InterruptedException
public 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.Recorder
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public String getAppId()
Copyright © 2014–2017. All rights reserved.