Class TPTReportPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- com.piketec.jenkins.plugins.tpt.publisher.TPTReportPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class TPTReportPublisher extends Recorder implements SimpleBuildStep
The post build action to publish the TPT test results in Jenkins- Author:
- FInfantino, PikeTec GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TPTReportPublisher.DescriptorImpl
The descriptor for the publisher-
Nested 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
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description TPTReportPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TPTReportPublisher.DescriptorImpl
getDescriptor()
BuildStepMonitor
getRequiredMonitorService()
void
perform(Run<?,?> build, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener)
Creates the directories on the build directory, loops over all JenkinsConfigurations and extract from each one the data from the "test_summary.xml".-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
perform
public void perform(Run<?,?> build, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
Creates the directories on the build directory, loops over all JenkinsConfigurations and extract from each one the data from the "test_summary.xml". Then it sets the failed tests and finally it creates the TPTReportPage action . (Thats the one who is displaying the files, piechart and failed tests)- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getDescriptor
public TPTReportPublisher.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
-