public class HtmlPublisher extends Recorder
| Modifier and Type | Class and Description |
|---|---|
static class |
HtmlPublisher.DescriptorImpl |
Publisher.DescriptorExtensionListImplExtensionPoint.LegacyInstancesAreScopedToHudsonBuildStep.PublisherListBUILDERS, PUBLISHERS| Constructor and Description |
|---|
HtmlPublisher(List<HtmlPublisherTarget> reportTargets) |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends Action> |
getProjectActions(AbstractProject<?,?> project) |
List<HtmlPublisherTarget> |
getReportTargets() |
BuildStepMonitor |
getRequiredMonitorService() |
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 specified
HtmlPublisherTargets. |
List<String> |
readFile(String filePath) |
static List<String> |
readFile(String filePath,
Class<?> publisherClass) |
protected static String |
resolveParametersInString(EnvVars envVars,
TaskListener listener,
String input) |
protected static String |
resolveParametersInString(Run<?,?> build,
TaskListener listener,
String input) |
getDescriptorall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, perform, prebuild@DataBoundConstructor @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public HtmlPublisher(List<HtmlPublisherTarget> reportTargets)
public List<HtmlPublisherTarget> getReportTargets()
public List<String> readFile(String filePath) throws IOException
IOExceptionpublic static List<String> readFile(String filePath, Class<?> publisherClass) throws IOException
IOExceptionprotected static String resolveParametersInString(Run<?,?> build, TaskListener listener, String input)
protected static String resolveParametersInString(EnvVars envVars, TaskListener listener, String input)
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException
perform in interface BuildStepperform in class BuildStepCompatibilityLayerInterruptedExceptionpublic static boolean publishReports(Run<?,?> build, FilePath workspace, TaskListener listener, List<HtmlPublisherTarget> reportTargets, Class<?> publisherClass) throws InterruptedException
HtmlPublisherTargets.InterruptedExceptionpublic Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
getProjectActions in interface BuildStepgetProjectActions in class BuildStepCompatibilityLayerpublic BuildStepMonitor getRequiredMonitorService()
Copyright © 2016–2019. All rights reserved.