org.jenkinsci.plugins
Class MsTestBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by org.jenkinsci.plugins.MsTestBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class MsTestBuilder
extends hudson.tasks.Builder

Author:
Ido Ran

Nested Class Summary
static class MsTestBuilder.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static MsTestBuilder.DescriptorImpl DESCRIPTOR
          Descriptor should be singleton.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
MsTestBuilder(String msTestName, String testFiles, String categories, String resultFile, String cmdLineArgs, boolean continueOnFail)
          When this builder is created in the project configuration step, the builder object will be created from the strings below.
 
Method Summary
 String getCategories()
           
 String getCmdLineArgs()
           
 boolean getcontinueOnFail()
           
 hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
           
 MsTestInstallation getMsTest()
           
 String getMsTestName()
           
 String getResultFile()
           
 String getTestFiles()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, 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
getProjectAction, getProjectActions, prebuild
 

Field Detail

DESCRIPTOR

@Extension
public static final MsTestBuilder.DescriptorImpl DESCRIPTOR
Descriptor should be singleton.

Constructor Detail

MsTestBuilder

@DataBoundConstructor
public MsTestBuilder(String msTestName,
                                          String testFiles,
                                          String categories,
                                          String resultFile,
                                          String cmdLineArgs,
                                          boolean continueOnFail)
When this builder is created in the project configuration step, the builder object will be created from the strings below.

Parameters:
msTestName - The MSTest logical name
testFiles - The path of the test files
cmdLineArgs - Whitespace separated list of command line arguments
Method Detail

getCmdLineArgs

public String getCmdLineArgs()

getTestFiles

public String getTestFiles()

getCategories

public String getCategories()

getResultFile

public String getResultFile()

getMsTestName

public String getMsTestName()

getcontinueOnFail

public boolean getcontinueOnFail()

getMsTest

public MsTestInstallation getMsTest()

perform

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

getDescriptor

public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder


Copyright © 2004-2014. All Rights Reserved.