org.jenkinsci.plugins.xunit
Class XUnitPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by org.jenkinsci.plugins.xunit.XUnitPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep, java.io.Serializable, org.jenkinsci.lib.dryrun.DryRun

public class XUnitPublisher
extends hudson.tasks.Recorder
implements org.jenkinsci.lib.dryrun.DryRun, java.io.Serializable

Class that converting custom reports to Junit reports and records them

Author:
Gregory Boissinot
See Also:
Serialized Form

Nested Class Summary
static class XUnitPublisher.XUnitDescriptorPublisher
           
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static java.lang.String GENERATED_JUNIT_DIR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
XUnitPublisher(com.thalesgroup.dtkit.metrics.hudson.api.type.TestType[] types, XUnitThreshold[] thresholds)
           
XUnitPublisher(com.thalesgroup.dtkit.metrics.hudson.api.type.TestType[] types, XUnitThreshold[] thresholds, java.lang.String thresholdMode)
           
 
Method Summary
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 java.lang.String getThresholdMode()
           
 XUnitThreshold[] getThresholds()
           
 com.thalesgroup.dtkit.metrics.hudson.api.type.TestType[] getTypes()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 boolean performDryRun(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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
getProjectActions, 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
getProjectActions, prebuild
 

Field Detail

GENERATED_JUNIT_DIR

public static final java.lang.String GENERATED_JUNIT_DIR
See Also:
Constant Field Values
Constructor Detail

XUnitPublisher

public XUnitPublisher(com.thalesgroup.dtkit.metrics.hudson.api.type.TestType[] types,
                      XUnitThreshold[] thresholds)

XUnitPublisher

public XUnitPublisher(com.thalesgroup.dtkit.metrics.hudson.api.type.TestType[] types,
                      XUnitThreshold[] thresholds,
                      java.lang.String thresholdMode)
Method Detail

getTypes

public com.thalesgroup.dtkit.metrics.hudson.api.type.TestType[] getTypes()

getThresholds

public XUnitThreshold[] getThresholds()

getThresholdMode

public java.lang.String getThresholdMode()

getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

performDryRun

public boolean performDryRun(hudson.model.AbstractBuild<?,?> build,
                             hudson.Launcher launcher,
                             hudson.model.BuildListener listener)
                      throws java.lang.InterruptedException,
                             java.io.IOException
Specified by:
performDryRun in interface org.jenkinsci.lib.dryrun.DryRun
Throws:
java.lang.InterruptedException
java.io.IOException

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep


Copyright © 2004-2012. All Rights Reserved.