Class HtmlReportPublisherTarget
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<htmlpublisher.HtmlPublisherTarget>
-
- htmlpublisher.HtmlPublisherTarget
-
- com.synopsys.defensics.jenkins.result.HtmlReportPublisherTarget
-
- All Implemented Interfaces:
Describable<htmlpublisher.HtmlPublisherTarget>
public final class HtmlReportPublisherTarget extends htmlpublisher.HtmlPublisherTarget
This class exists to enable replacing the default graph icon html publisher uses for html actions with our own icon.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
HtmlReportPublisherTarget.HtmlReportAction
This class exists to override the graph icon used byHtmlPublisherTarget.BaseHTMLAction
for builds.-
Nested classes/interfaces inherited from class htmlpublisher.HtmlPublisherTarget
htmlpublisher.HtmlPublisherTarget.BaseHTMLAction, htmlpublisher.HtmlPublisherTarget.DescriptorImpl, htmlpublisher.HtmlPublisherTarget.HTMLAction, htmlpublisher.HtmlPublisherTarget.HTMLBuildAction, htmlpublisher.HtmlPublisherTarget.HTMLPublishedForProjectMarkerAction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customizeActionForDefensics(Run<?,?> run)
This method replaces theHtmlPublisherTarget.HTMLBuildAction
added to the run byHtmlPublisher
with aHtmlReportPublisherTarget.HtmlReportAction
, a subtype.boolean
equals(Object o)
String
getJobId()
Action
getProjectAction(AbstractItem item)
This is overridden to return an empty Action to avoidWorkflowActionsFactory
creating a duplicate report link on project level.int
hashCode()
-
Methods inherited from class htmlpublisher.HtmlPublisherTarget
getAllowMissing, getAlwaysLinkToLastBuild, getArchiveTarget, getEscapeUnderscores, getIncludes, getKeepAll, getReportDir, getReportFiles, getReportName, getReportTitles, getSanitizedName, getUseWrapperFileDirectly, getWrapperName, handleAction, readResolve, sanitizeReportName, setEscapeUnderscores, setIncludes, setReportTitles, setUseWrapperFileDirectly
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
HtmlReportPublisherTarget
public HtmlReportPublisherTarget(String reportName, String reportDir, String reportFiles, String reportTitles, String jobId)
Constructor.- Parameters:
reportName
- Report name. Used in action link text.reportDir
- Directory from which the report can be found, relative to workspace.reportFiles
- The file names of report files, separated by comma.reportTitles
- The title of the report files, separated by comma. These are used as tab titles when viewing the report.jobId
- The id of the Defensics job.
-
-
Method Detail
-
getJobId
public String getJobId()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classhtmlpublisher.HtmlPublisherTarget
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classhtmlpublisher.HtmlPublisherTarget
-
getProjectAction
public Action getProjectAction(AbstractItem item)
This is overridden to return an empty Action to avoidWorkflowActionsFactory
creating a duplicate report link on project level. This is called for Pipeline projects. SeeProjectHtmlReportActionFactory
for Freestyle projects.- Overrides:
getProjectAction
in classhtmlpublisher.HtmlPublisherTarget
-
customizeActionForDefensics
public void customizeActionForDefensics(Run<?,?> run)
This method replaces theHtmlPublisherTarget.HTMLBuildAction
added to the run byHtmlPublisher
with aHtmlReportPublisherTarget.HtmlReportAction
, a subtype. The reason for this is to override the default icon used byHtmlPublisherTarget.BaseHTMLAction
.- Parameters:
run
- The run where defensics results have been published usingHtmlPublisher
, and whereHtmlPublisherTarget.HTMLBuildAction
should be replaced with aHtmlReportPublisherTarget.HtmlReportAction
.
-
-