public class AWSDeviceFarmRecorder
extends hudson.tasks.Recorder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
AWSDeviceFarmRecorder.DescriptorImpl
Descriptor for AWSDeviceFarmRecorder.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
AWSDeviceFarmRecorder(String projectName,
String devicePoolName,
String testSpecName,
String environmentToRun,
String appArtifact,
String runName,
String testToRun,
Boolean storeResults,
String resultsPath,
Boolean archiveResults,
Boolean isRunUnmetered,
String eventCount,
String eventThrottle,
String seed,
String username,
String password,
String appiumJavaJUnitTest,
String appiumJavaTestNGTest,
String appiumPythonTest,
String appiumRubyTest,
String appiumNodeTest,
String calabashFeatures,
String calabashTags,
String calabashProfile,
String junitArtifact,
String junitFilter,
String uiautomatorArtifact,
String uiautomatorFilter,
String uiautomationArtifact,
String xctestArtifact,
String xctestFilter,
String xctestUiArtifact,
String xctestUiFilter,
String appiumVersionJunit,
String appiumVersionPython,
String appiumVersionTestng,
Boolean ifWebApp,
Boolean extraData,
String extraDataArtifact,
Boolean deviceLocation,
Double deviceLatitude,
Double deviceLongitude,
Boolean radioDetails,
Boolean ifBluetooth,
Boolean ifWifi,
Boolean ifGPS,
Boolean ifNfc,
Integer jobTimeoutMinutes,
Boolean ifVideoRecording,
Boolean ifAppPerformanceMonitoring,
Boolean ignoreRunError,
Boolean ifVpce,
Boolean ifSkipAppResigning,
String vpceServiceName,
String deviceSelectionFilters,
Integer maxDevicesForDeviceFilters)
The Device Farm recorder class for running post-build steps on Jenkins.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
accountHasVPC() |
hudson.util.Secret |
getAkid()
Access key ID getter.
|
AWSDeviceFarm |
getAWSDeviceFarm()
Getter for the Device Farm API.
|
AWSDeviceFarmRecorder.DescriptorImpl |
getDescriptor()
Getter for the Device Farm descriptor.
|
Collection<hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project)
Return collection of all Jenkins actions to be attached to this project.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
In a concurrent environment, this MUST run after the has completed.
|
String |
getRoleArn()
Role ARN getter.
|
String |
getSecurityGroupString()
Gets string representing security groups for textbox
|
hudson.util.Secret |
getSkid()
Secret key ID getter.
|
String |
getSubnetString()
Gets string representing subnet ids for textbox
|
String |
getVpcString()
Gets vpcId for textbox
|
String |
isCustomEnvironment(String environmentToRun)
Test if the environment selected by Customer is 'Custom' (for marking the radio button).
|
String |
isStandardEnvironment(String environmentToRun)
Test if the environment selected by Customer is 'Standard' (for marking the radio button).
|
String |
isTestType(String testTypeName)
Test if the test type names match (for marking the radio button).
|
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Perform the post-build test action.
|
String |
transformTestToRunForWebApp(String testToRun)
Transform the test type parameter as the requirement for AWS devicefarm API for appium tests of web apps.
|
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, perform, perform, prebuild
public String projectName
public String devicePoolName
public String appArtifact
public String runName
public String testToRun
public String testSpecName
public String environmentToRun
public Boolean storeResults
public String resultsPath
public Boolean archiveResults
public Boolean isRunUnmetered
public String eventCount
public String eventThrottle
public String seed
public String username
public String password
public String appiumJavaJUnitTest
public String appiumJavaTestNGTest
public String appiumPythonTest
public String appiumRubyTest
public String appiumNodeTest
public String calabashFeatures
public String calabashTags
public String calabashProfile
public String junitArtifact
public String junitFilter
public String uiautomatorArtifact
public String uiautomatorFilter
public String uiautomationArtifact
public String xctestArtifact
public String xctestFilter
public String xctestUiArtifact
public String xctestUiFilter
public Boolean ignoreRunError
public Boolean ifWebApp
public String appiumVersionJunit
public String appiumVersionPython
public String appiumVersionTestng
public Boolean extraData
public String extraDataArtifact
public String vpceServiceName
public Boolean ifVpce
public Boolean deviceLocation
public Double deviceLatitude
public Double deviceLongitude
public Boolean radioDetails
public Boolean ifWifi
public Boolean ifGPS
public Boolean ifNfc
public Boolean ifBluetooth
public Integer jobTimeoutMinutes
public Boolean ifVideoRecording
public Boolean ifAppPerformanceMonitoring
public Boolean ifSkipAppResigning
public String deviceSelectionFilters
public Integer maxDevicesForDeviceFilters
@DataBoundConstructor public AWSDeviceFarmRecorder(String projectName, String devicePoolName, String testSpecName, String environmentToRun, String appArtifact, String runName, @Nonnull String testToRun, Boolean storeResults, String resultsPath, Boolean archiveResults, Boolean isRunUnmetered, String eventCount, String eventThrottle, String seed, String username, String password, String appiumJavaJUnitTest, String appiumJavaTestNGTest, String appiumPythonTest, String appiumRubyTest, String appiumNodeTest, String calabashFeatures, String calabashTags, String calabashProfile, String junitArtifact, String junitFilter, String uiautomatorArtifact, String uiautomatorFilter, String uiautomationArtifact, String xctestArtifact, String xctestFilter, String xctestUiArtifact, String xctestUiFilter, String appiumVersionJunit, String appiumVersionPython, String appiumVersionTestng, Boolean ifWebApp, Boolean extraData, String extraDataArtifact, Boolean deviceLocation, Double deviceLatitude, Double deviceLongitude, Boolean radioDetails, Boolean ifBluetooth, Boolean ifWifi, Boolean ifGPS, Boolean ifNfc, Integer jobTimeoutMinutes, Boolean ifVideoRecording, Boolean ifAppPerformanceMonitoring, Boolean ignoreRunError, Boolean ifVpce, Boolean ifSkipAppResigning, String vpceServiceName, String deviceSelectionFilters, Integer maxDevicesForDeviceFilters)
projectName
- The name of the Device Farm project.devicePoolName
- The name of the Device Farm device pool.testSpecName
- The Name of the Device Farm TestSpec Upload.environmentToRun
- The type of environment used to run the tests.appArtifact
- The path to the app to be tested.runName
- The name of the run.testToRun
- The type of test to be run.storeResults
- Download the results to a local archive.resultsPath
- Path to where the results will be saved to.archiveResults
- Whether to save results directly to the artifacts folder, saving them as build artifacts, or use the workspace folder.eventCount
- The number of fuzz events to run.eventThrottle
- The fuzz event throttle count.seed
- The initial seed of fuzz events.username
- Username to use if explorer encounters a login form.password
- Password to use if explorer encounters a login form.appiumJavaJUnitTest
- The path to the Appium Java Junit tests.appiumJavaTestNGTest
- The path to the Appium Java tests.appiumPythonTest
- The path to the Appium python tests.appiumRubyTest
- The path to the Appium Ruby tests.appiumNodeTest
- The path to the Appium Node tests.calabashFeatures
- The path to the Calabash tests to be run.calabashTags
- Calabash tags to attach to the test.calabashProfile
- Calabash Profile to attach to the test.junitArtifact
- The path to the Instrumentation JUnit tests.junitFilter
- The filter to apply to the Instrumentation JUnit tests.uiautomatorArtifact
- The path to the UI Automator tests to be run.uiautomatorFilter
- The filter to apply to the UI Automator tests.uiautomationArtifact
- The path to the UI Automation tests to be run.xctestArtifact
- The path to the XCTest tests to be run.xctestFilter
- The filter to apply to the XCTest tests.xctestUiArtifact
- The path to the XCTest UI tests to be run.xctestUiFilter
- The filter to apply to the XCTest UI tests.appiumVersionJunit
- The version of the Appium used for Appium Junit tests.appiumVersionPython
- The version of the Appium used for Appium Python tests.appiumVersionTestng
- The version of the Appium used for Appium Testing tests.ifWebApp
- Whether it is a web app.extraData
- Whether it has extra data.extraDataArtifact
- The path to the extra data.vpceServiceName
- The name of the VPCE configuration.deviceLocation
- True when device location is specified.deviceLatitude
- The specified device latitude.deviceLongitude
- The specified device longitude.ifVpce
- Checked if VPCE config is enabled.radioDetails
- Whether the radio details would be specified.ifWifi
- ifNfc
- ifGPS
- ifBluetooth
- jobTimeoutMinutes
- The max execution time per job.ifAppPerformanceMonitoring
- Whether the performance would be monitored.ifVideoRecording
- Whether the video would be recorded.deviceSelectionFilters
- The device selection filter.maxDevicesForDeviceFilters
- The max number of devices to be selected.public String transformTestToRunForWebApp(@Nonnull String testToRun)
testToRun
- The String representation of the test type.public String isTestType(String testTypeName)
testTypeName
- The String representation of the test type.public String isStandardEnvironment(String environmentToRun)
environmentToRun
- The String representation of the environment.public String isCustomEnvironment(String environmentToRun)
environmentToRun
- The String representation of the environment.public Boolean accountHasVPC()
public void perform(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws IOException, InterruptedException
perform
in interface jenkins.tasks.SimpleBuildStep
build
- The build to follow.launcher
- The launcher.listener
- The build launcher.IOException
InterruptedException
public String getRoleArn()
public String getVpcString()
public String getSubnetString()
public String getSecurityGroupString()
public hudson.util.Secret getAkid()
public hudson.util.Secret getSkid()
public AWSDeviceFarm getAWSDeviceFarm()
public AWSDeviceFarmRecorder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
public Collection<hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
getProjectActions
in interface hudson.tasks.BuildStep
getProjectActions
in class hudson.tasks.BuildStepCompatibilityLayer
project
- The AWS Device Farm Jenkins project.public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
Copyright © 2016–2024. All rights reserved.