hudson.plugins.klaros
Class KlarosTestResultPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.klaros.KlarosTestResultPublisher
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class KlarosTestResultPublisher
- extends hudson.tasks.Recorder
Klaros test result publisher class. When a publish is performed, the
perform(AbstractBuild, Launcher, BuildListener) method will be
invoked.
- Author:
- Caroline Albuquerque (albuquerque@verit.de), Torsten Stolpmann (stolpmann@verit.de)
| 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 |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Constructor Summary |
KlarosTestResultPublisher(java.lang.String config,
java.lang.String env,
java.lang.String sut,
java.lang.String type,
java.lang.String pathTestResults,
java.lang.String url)
Instantiates a new klaros test result publisher. |
| Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, 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, prebuild |
KlarosTestResultPublisher
@DataBoundConstructor
public KlarosTestResultPublisher(java.lang.String config,
java.lang.String env,
java.lang.String sut,
java.lang.String type,
java.lang.String pathTestResults,
java.lang.String url)
- Instantiates a new klaros test result publisher.
- Parameters:
config - the Klaros project configuration to useenv - the Klaros test environment to usesut - the Klaros system under test to usetype - the type of test result to importpathTestResults - the path to the test resultsurl - the Klaros application url
descriptor
public static KlarosTestResultPublisher.DescriptorImpl descriptor()
- Descriptor.
- Returns:
- the descriptor implementation
getConfig
public java.lang.String getConfig()
setConfig
public void setConfig(java.lang.String config)
getEnv
public java.lang.String getEnv()
setEnv
public void setEnv(java.lang.String env)
getUrl
public java.lang.String getUrl()
setUrl
public void setUrl(java.lang.String url)
getSut
public java.lang.String getSut()
setSut
public void setSut(java.lang.String sut)
getPathTestResults
public java.lang.String getPathTestResults()
setPathTestResults
public void setPathTestResults(java.lang.String pathTestResults)
getUrls
public java.util.List<java.lang.String> getUrls()
- Gets the urls.
- Returns:
- the urls
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
- Runs the step over the given build and reports the progress to the
listener.
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Parameters:
build - the current buildlauncher - the launcherlistener - the listener
- Returns:
- null
getUrl
public java.lang.String getUrl(java.lang.String sourceURL)
- Gets the URL of the given name, or returns null.
- Parameters:
sourceURL - the URL of the klaros server import servlet
- Returns:
- the klaros server import servlet URL
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
-
getDescriptor
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
-
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>- Overrides:
getDescriptor in class hudson.tasks.Recorder
Copyright © 2009 verit Informationssysteme GmbH. All Rights Reserved.