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 artifact,
String artifactType,
boolean synchronous) |
| 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.
|
hudson.model.Action |
getProjectAction(hudson.model.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.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isSynchronous()
Retrieves is synchronous mode is enabled or not.
|
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.
|
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.
|
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectActions, perform, perform, prebuild@DataBoundSetter public void setProjectId(String projectId)
@DataBoundSetter public void setProjectName(String projectName)
@DataBoundSetter public void setProjectVersion(String projectVersion)
public String getProjectId()
public String getArtifact()
public String getArtifactType()
public String getProjectName()
public String getProjectVersion()
public boolean isSynchronous()
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 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction in interface hudson.tasks.BuildStepgetProjectAction in class hudson.tasks.BuildStepCompatibilityLayerpublic 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.