Package htmlpublisher
Class HtmlPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
htmlpublisher.HtmlPublisher
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
Saves HTML reports for the project and publishes them.
- Author:
- Kohsuke Kawaguchi, Mike Rooney
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DirScanner
dirScannerGlob
(String includes, String excludes, boolean useDefaultExcludes, OpenOption... openOptions) Collection
<? extends Action> getProjectActions
(AbstractProject<?, ?> project) boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) static boolean
publishReports
(Run<?, ?> build, FilePath workspace, TaskListener listener, List<HtmlPublisherTarget> reportTargets, Class<?> publisherClass) Runs HTML the publishing operation for specifiedHtmlPublisherTarget
s.protected static String
resolveParametersInString
(EnvVars envVars, TaskListener listener, String input) protected static String
resolveParametersInString
(Run<?, ?> build, TaskListener listener, String input) Methods inherited from class hudson.tasks.Recorder
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
-
Constructor Details
-
HtmlPublisher
@DataBoundConstructor @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public HtmlPublisher(List<HtmlPublisherTarget> reportTargets)
-
-
Method Details
-
getReportTargets
-
readFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
resolveParametersInString
protected static String resolveParametersInString(Run<?, ?> build, TaskListener listener, String input) -
resolveParametersInString
protected static String resolveParametersInString(EnvVars envVars, TaskListener listener, String input) -
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
-
publishReports
public static boolean publishReports(Run<?, ?> build, FilePath workspace, TaskListener listener, List<HtmlPublisherTarget> reportTargets, Class<?> publisherClass) throws InterruptedExceptionRuns HTML the publishing operation for specifiedHtmlPublisherTarget
s.- Returns:
- False if the operation failed
- Throws:
InterruptedException
-
getProjectActions
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
dirScannerGlob
@SuppressRestrictedWarnings(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static DirScanner dirScannerGlob(String includes, String excludes, boolean useDefaultExcludes, OpenOption... openOptions) throws Exception - Throws:
Exception
-
getRequiredMonitorService
-