public class DependencyTrackPublisher extends hudson.tasks.Recorder implements jenkins.tasks.SimpleBuildStep, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DependencyTrackPublisher.DescriptorImpl
Descriptor for
DependencyTrackPublisher. |
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
DependencyTrackPublisher(String projectId,
String artifact,
String artifactType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifact()
Retrieves the path and filename of the artifact.
|
String |
getArtifactType()
Retrieves the type of artifact (bom or scanResult).
|
DependencyTrackPublisher.DescriptorImpl |
getDescriptor()
A Descriptor Implementation.
|
String |
getProjectId()
Retrieves the project ID to upload to.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath filePath,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
This method is called whenever the build step is executed.
|
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuildpublic String getProjectId()
public String getArtifact()
public String getArtifactType()
public void perform(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.FilePath filePath, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform in interface jenkins.tasks.SimpleBuildStepbuild - A Run objectfilePath - A FilePath objectlauncher - A Launcher objectlistener - A BuildListener objectInterruptedExceptionIOExceptionpublic DependencyTrackPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildStepCopyright © 2018 OWASP. All rights reserved.