Package com.compuware.jenkins.build
Class CodeCoverageBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.compuware.jenkins.build.CodeCoverageBuilder
-
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.tasks.Builder>,hudson.tasks.BuildStep,jenkins.tasks.SimpleBuildStep
public class CodeCoverageBuilder extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStepCaptures the configuration information for a Code Coverage build step.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCodeCoverageBuilder.CodeCoverageDescriptorImplDescriptorImpl is used to create instances ofCodeCoverageBuilder.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
-
-
Constructor Summary
Constructors Constructor Description CodeCoverageBuilder(String connectionId, String credentialsId, String analysisPropertiesPath, String analysisProperties)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnalysisProperties()Gets the value of the 'Analysis properties'.StringgetAnalysisPropertiesPath()Gets the value of the 'Path to analysis properties'.StringgetConnectionId()Gets the unique identifier of the 'Host connection'.StringgetCredentialsId()Gets the value of the 'Login credentials'.CodeCoverageBuilder.CodeCoverageDescriptorImplgetDescriptor()voidperform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
-
-
-
Constructor Detail
-
CodeCoverageBuilder
@DataBoundConstructor public CodeCoverageBuilder(String connectionId, String credentialsId, String analysisPropertiesPath, String analysisProperties)
Constructor.- Parameters:
connectionId- a unique host connection identifiercredentialsId- unique id of the selected credentialanalysisPropertiesPath- the path of Code Coverage analysis properties fileanalysisProperties- the Code Coverage analysis properties
-
-
Method Detail
-
getConnectionId
public String getConnectionId()
Gets the unique identifier of the 'Host connection'.- Returns:
Stringvalue of m_connectionId
-
getCredentialsId
public String getCredentialsId()
Gets the value of the 'Login credentials'.- Returns:
Stringvalue of m_credentialsId
-
getAnalysisPropertiesPath
public String getAnalysisPropertiesPath()
Gets the value of the 'Path to analysis properties'.- Returns:
Stringvalue of m_analysisPropertiesPath
-
getAnalysisProperties
public String getAnalysisProperties()
Gets the value of the 'Analysis properties'.- Returns:
Stringvalue of m_analysisProperties
-
getDescriptor
public CodeCoverageBuilder.CodeCoverageDescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfacehudson.model.Describable<hudson.tasks.Builder>- Overrides:
getDescriptorin classhudson.tasks.Builder
-
perform
public void perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfacejenkins.tasks.SimpleBuildStep- Throws:
InterruptedExceptionIOException
-
-