public class DependencyTrackPublisher extends ThresholdCapablePublisher implements SimpleBuildStep, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
DependencyTrackPublisher.DescriptorImpl
Descriptor for
DependencyTrackPublisher. |
Publisher.DescriptorExtensionListImplSimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudsonBUILDERS, PUBLISHERS| Constructor and Description |
|---|
DependencyTrackPublisher(String artifact,
boolean synchronous) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifact()
Retrieves the path and filename of the artifact.
|
DependencyTrackPublisher.DescriptorImpl |
getDescriptor()
A Descriptor Implementation.
|
Action |
getProjectAction(AbstractProject<?,?> project) |
String |
getProjectId()
Retrieves the project ID to upload to.
|
String |
getProjectName()
Retrieves the project name to upload to.
|
String |
getProjectVersion()
Retrieves the project version to upload to.
|
BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isSynchronous()
Retrieves whether synchronous mode is enabled or not.
|
void |
perform(Run<?,?> build,
FilePath filePath,
Launcher launcher,
TaskListener listener)
This method is called whenever the build step is executed.
|
void |
setProjectId(String projectId)
Sets the project ID to upload to.
|
void |
setProjectName(String projectName)
Sets the project name to upload to.
|
void |
setProjectVersion(String projectVersion)
Sets the project name to upload to.
|
getFailedNewCritical, getFailedNewHigh, getFailedNewLow, getFailedNewMedium, getFailedTotalCritical, getFailedTotalHigh, getFailedTotalLow, getFailedTotalMedium, getNewThresholdAnalysisExploitable, getTotalThresholdAnalysisExploitable, getUnstableNewCritical, getUnstableNewHigh, getUnstableNewLow, getUnstableNewMedium, getUnstableTotalCritical, getUnstableTotalHigh, getUnstableTotalLow, getUnstableTotalMedium, setFailedNewCritical, setFailedNewHigh, setFailedNewLow, setFailedNewMedium, setFailedTotalCritical, setFailedTotalHigh, setFailedTotalLow, setFailedTotalMedium, setNewThresholdAnalysisExploitable, setTotalThresholdAnalysisExploitable, setUnstableNewCritical, setUnstableNewHigh, setUnstableNewLow, setUnstableNewMedium, setUnstableTotalCritical, setUnstableTotalHigh, setUnstableTotalLow, setUnstableTotalMediumall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectActions, perform, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectActions, perform, prebuild@DataBoundConstructor public DependencyTrackPublisher(String artifact, boolean synchronous)
@DataBoundSetter public void setProjectId(String projectId)
config.jelly.projectId - a build's projectId@DataBoundSetter public void setProjectName(String projectName)
projectName - a build's project name to upload to@DataBoundSetter public void setProjectVersion(String projectVersion)
projectVersion - a build's project version to upload topublic String getProjectId()
config.jelly.public String getArtifact()
config.jelly.public String getProjectName()
config.jelly.public String getProjectVersion()
config.jelly.public boolean isSynchronous()
config.jelly.true if synchronous mode is enabled for this buildpublic void perform(@Nonnull Run<?,?> build, @Nonnull FilePath filePath, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException
perform in interface SimpleBuildStepbuild - A Run objectfilePath - A FilePath objectlauncher - A Launcher objectlistener - A BuildListener objectInterruptedExceptionIOExceptionpublic Action getProjectAction(AbstractProject<?,?> project)
getProjectAction in interface BuildStepgetProjectAction in class BuildStepCompatibilityLayerpublic DependencyTrackPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface Describable<Publisher>getDescriptor in class Recorderpublic BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface BuildStepCopyright © 2018–2020 OWASP. All rights reserved.