Package com.testdroid.jenkins
Class RunInCloudBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.testdroid.jenkins.AbstractBuilder
com.testdroid.jenkins.RunInCloudBuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionRunInCloudBuilder
(String projectId, String appPath, String testPath, String dataPath, String testRunName, String scheduler, String testRunner, String deviceGroupId, String language, String screenshotsDirectory, String keyValuePairs, String withAnnotation, String withoutAnnotation, String testCasesSelect, String testCasesValue, Boolean failBuildIfThisStepFailed, String virusScanTimeout, WaitForResultsBlock waitForResultsBlock, String testTimeout, String credentialsId, String cloudUrl, Long frameworkId, com.testdroid.api.model.APIDevice.OsType osType, Boolean biometricInstrumentation) -
Method Summary
Modifier and TypeMethodDescriptionboolean
completeRun
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Wrapper around runTest to be used elsewhere, and sensibly log steps of the build procedurecom.testdroid.api.model.APIDevice.OsType
boolean
boolean
boolean
boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Perform build step, as required by AbstractBuildervoid
setAppPath
(String appPath) void
setBiometricInstrumentation
(boolean biometricInstrumentation) void
setCloudUrl
(String cloudUrl) void
setCredentialsId
(String credentialsId) void
setDataPath
(String dataPath) void
setDeviceGroupId
(String deviceGroupId) void
setFailBuildIfThisStepFailed
(boolean failBuildIfThisStepFailed) void
setFrameworkId
(Long frameworkId) void
setKeyValuePairs
(String keyValuePairs) void
setLanguage
(String language) void
setOsType
(com.testdroid.api.model.APIDevice.OsType osType) void
setProjectId
(String projectId) void
setScheduler
(String scheduler) void
setScreenshotsDirectory
(String screenshotsDirectory) void
setTestCasesSelect
(String testCasesSelect) void
setTestCasesValue
(String testCasesValue) void
setTestPath
(String testPath) void
setTestRunName
(String testRunName) void
setTestRunner
(String testRunner) void
setTestTimeout
(String testTimeout) void
setVirusScanTimeout
(String virusScanTimeout) void
setWaitForResultsBlock
(WaitForResultsBlock waitForResultsBlock) void
setWithAnnotation
(String withAnnotation) void
setWithoutAnnotation
(String withoutAnnotation) Methods inherited from class com.testdroid.jenkins.AbstractBuilder
applyMacro
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
RunInCloudBuilder
@DataBoundConstructor public RunInCloudBuilder(String projectId, String appPath, String testPath, String dataPath, String testRunName, String scheduler, String testRunner, String deviceGroupId, String language, String screenshotsDirectory, String keyValuePairs, String withAnnotation, String withoutAnnotation, String testCasesSelect, String testCasesValue, Boolean failBuildIfThisStepFailed, String virusScanTimeout, WaitForResultsBlock waitForResultsBlock, String testTimeout, String credentialsId, String cloudUrl, Long frameworkId, com.testdroid.api.model.APIDevice.OsType osType, Boolean biometricInstrumentation)
-
-
Method Details
-
getTestRunName
-
setTestRunName
-
getAppPath
-
setAppPath
-
getTestPath
-
setTestPath
-
getProjectId
-
setProjectId
-
getDeviceGroupId
-
setDeviceGroupId
-
getTestRunner
-
setTestRunner
-
getScreenshotsDirectory
-
setScreenshotsDirectory
-
getKeyValuePairs
-
setKeyValuePairs
-
getWithAnnotation
-
setWithAnnotation
-
getWithoutAnnotation
-
setWithoutAnnotation
-
getTestCasesSelect
-
setTestCasesSelect
-
getTestCasesValue
-
setTestCasesValue
-
getDataPath
-
setDataPath
-
getLanguage
-
setLanguage
-
getScheduler
-
setScheduler
-
getTestTimeout
-
setTestTimeout
-
getCredentialsId
-
setCredentialsId
-
getCloudUrl
-
setCloudUrl
-
getVirusScanTimeout
-
setVirusScanTimeout
-
getWaitForResultsBlock
-
setWaitForResultsBlock
-
isFailBuildIfThisStepFailed
public boolean isFailBuildIfThisStepFailed() -
setFailBuildIfThisStepFailed
public void setFailBuildIfThisStepFailed(boolean failBuildIfThisStepFailed) -
isFullTest
public boolean isFullTest() -
isDataFile
public boolean isDataFile() -
isWaitForResults
public boolean isWaitForResults() -
getFrameworkId
-
setFrameworkId
-
getOsType
public com.testdroid.api.model.APIDevice.OsType getOsType() -
setOsType
public void setOsType(com.testdroid.api.model.APIDevice.OsType osType) -
isBiometricInstrumentation
public boolean isBiometricInstrumentation() -
setBiometricInstrumentation
public void setBiometricInstrumentation(boolean biometricInstrumentation) -
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOExceptionPerform build step, as required by AbstractBuilder- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
completeRun
public boolean completeRun(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOExceptionWrapper around runTest to be used elsewhere, and sensibly log steps of the build procedure- Throws:
InterruptedException
IOException
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-