Class TestProjectBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestHelper
de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestBuilder
de.tracetronic.jenkins.plugins.ecutest.test.TestProjectBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
Builder providing the execution of an ecu.test project.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestHelper
AbstractTestHelper.GetSettingCallableNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanrunTest(String testFile, TestConfig testConfig, ExecutionConfig executionConfig, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Run the test with given configurations within a defined timeout.voidsetProjectConfig(ProjectConfig projectConfig) Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestBuilder
addBuildAction, getDescriptor, getExecutionConfig, getRequiredMonitorService, getTestConfig, getTestFile, perform, setExecutionConfig, setTestConfigMethods inherited from class de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestHelper
checkETInstance, checkTSInstance, closeETInstance, getConfigDir, getConfigFilePath, getDefaultConfigDir, getDefaultPackagesDir, getPackagesDir, getTestFilePath, getTestIdMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
TestProjectBuilder
Instantiates a newTestProjectBuilder.- Parameters:
testFile- the project file
-
-
Method Details
-
getProjectConfig
-
setProjectConfig
-
runTest
protected boolean runTest(String testFile, TestConfig testConfig, ExecutionConfig executionConfig, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionDescription copied from class:AbstractTestBuilderRun the test with given configurations within a defined timeout.- Specified by:
runTestin classAbstractTestBuilder- Parameters:
testFile- the full test file pathtestConfig- the expanded test configurationexecutionConfig- the expanded execution configurationrun- the buildworkspace- the workspacelauncher- the launcherlistener- the listener- Returns:
trueif running the test passed,falseotherwise- Throws:
IOException- signals that an I/O exception has occurredInterruptedException- if the build gets interrupted
-