Class LevelOpsPostBuildPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- io.jenkins.plugins.propelo.job_reporter.extensions.LevelOpsPostBuildPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class LevelOpsPostBuildPublisher extends Recorder implements SimpleBuildStep
This class is run when its post build action is enabled. It is responsible to pick files from workspace which match a particular pattern and put them in runs so that LevelopsRunListener can pick them up later. The pattern of the files and the project name are passed from the class's corresponding config.jelly file (takes from UI) which is received in the constructor when annotated withDataBoundConstructor
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LevelOpsPostBuildPublisher.DescriptorImpl
-
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 LevelOpsPostBuildPublisher(String coverageReportPath, String projectName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCoverageReportPath()
String
getProjectName()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
static String
sanatizeFileName(String projectName)
-
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, 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, getRequiredMonitorService, perform, prebuild
-
-
-
-
Method Detail
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getCoverageReportPath
public String getCoverageReportPath()
-
getProjectName
public String getProjectName()
-
-