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.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested 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 DirScannerdirScannerGlob(String includes, String excludes, boolean useDefaultExcludes, OpenOption... openOptions) Collection<? extends Action>getProjectActions(AbstractProject<?, ?> project) booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) static booleanpublishReports(Run<?, ?> build, FilePath workspace, TaskListener listener, List<HtmlPublisherTarget> reportTargets, Class<?> publisherClass) Runs HTML the publishing operation for specifiedHtmlPublisherTargets.protected static StringresolveParametersInString(EnvVars envVars, TaskListener listener, String input) protected static StringresolveParametersInString(Run<?, ?> build, TaskListener listener, String input) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods 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:
performin interfaceBuildStep- Overrides:
performin 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 specifiedHtmlPublisherTargets.- Returns:
- False if the operation failed
- Throws:
InterruptedException
-
getProjectActions
- Specified by:
getProjectActionsin interfaceBuildStep- Overrides:
getProjectActionsin 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
-