@Extension
@Symbol(value="devicefarm")
public static final class AWSDeviceFarmRecorder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
Modifier and Type | Field and Description |
---|---|
hudson.util.Secret |
akid |
String |
roleArn |
hudson.util.Secret |
skid |
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Bind descriptor object to capture global plugin settings from 'Manage Jenkins'.
|
hudson.util.FormValidation |
doCheckAppArtifact(Boolean ifWebApp,
String appArtifact)
Validate the user entered artifact for the application.
|
hudson.util.FormValidation |
doCheckAppiumJavaJUnitTest(String appiumJavaJUnitTest)
Validate the user entered artifact for Appium Java jUnit test content.
|
hudson.util.FormValidation |
doCheckAppiumJavaTestNGTest(String appiumJavaTestNGTest)
Validate the user entered artifact for Appium Java TestNG test content.
|
hudson.util.FormValidation |
doCheckAppiumNodeTest(String appiumNodeTest)
Validate the user entered artifact for Appium Node test content.
|
hudson.util.FormValidation |
doCheckAppiumPythonTest(String appiumPythonTest)
Validate the user entered artifact for Appium Python test content.
|
hudson.util.FormValidation |
doCheckAppiumRubyTest(String appiumRubyTest)
Validate the user entered artifact for Appium Ruby test content.
|
hudson.util.FormValidation |
doCheckCalabashFeatures(String calabashFeatures)
Validate the user entered file path to local Calabash features.
|
hudson.util.FormValidation |
doCheckDevicePoolName(String devicePoolName)
Validate the user selected device pool.
|
hudson.util.FormValidation |
doCheckIsRunUnmetered(Boolean isRunUnmetered,
String appArtifact,
Boolean ifWebApp)
Validate if user account has unmetered devices
|
hudson.util.FormValidation |
doCheckJobTimeoutMinutes(Integer jobTimeoutMinutes)
Validate the user entered execution time.
|
hudson.util.FormValidation |
doCheckJunitArtifact(String junitArtifact)
Validate the user entered artifact for JUnit/Robotium test content.
|
hudson.util.FormValidation |
doCheckProjectName(String projectName)
Validate the user selected project.
|
hudson.util.FormValidation |
doCheckUiautomatorArtifact(String uiautomatorArtifact)
Validate the user entered artifact for uiautomator.
|
hudson.util.FormValidation |
doCheckXctestArtifact(String xctestArtifact)
Validate the user entered artifact for XCTest.
|
hudson.util.FormValidation |
doCheckXctestUiArtifact(String xctestUiArtifact)
Validate the user entered artifact for XCTest UI.
|
hudson.util.ListBoxModel |
doFillAppiumVersionJunitItems(String currentAppiumVersion)
Populate the project drop-down Appium Version.
|
hudson.util.ListBoxModel |
doFillAppiumVersionPythonItems(String currentAppiumVersion)
Populate the project drop-down Appium Version.
|
hudson.util.ListBoxModel |
doFillAppiumVersionTestngItems(String currentAppiumVersion)
Populate the project drop-down Appium Version.
|
hudson.util.ListBoxModel |
doFillDevicePoolNameItems(String projectName,
String currentDevicePoolName)
Populate the device pool drop-down from AWS Device Farm API or local cache.
|
hudson.util.ListBoxModel |
doFillProjectNameItems(String currentProjectName)
Populate the project drop-down from the AWS Device Farm API or local cache.
|
hudson.util.ListBoxModel |
doFillTestSpecNameItems(String projectName,
String currentTestSpecName)
Populate the TestSpec drop-down from AWS Device Farm API or local cache.
|
hudson.util.ListBoxModel |
doFillVpceServiceNameItems(String currentVpceServiceName) |
hudson.util.FormValidation |
doRefresh()
Refresh button clicked, clear the project and device pool caches
so the next click on the drop-down will get fresh content from the API.
|
hudson.util.FormValidation |
doValidateCredentials(String roleArn,
String akid,
String skid)
Validates if the credentials provided for the verification are valid or not.
|
String |
fetchSecurityGroupIdsFromProjectName(String projectName)
Called from javascript as a proxy.
|
String |
fetchSubnetIdsFromProjectName(String projectName)
Called from javascript as a proxy.
|
String |
fetchVpcIdFromProjectName(String projectName)
Called from javascript as a proxy.
|
AWSDeviceFarm |
getAWSDeviceFarm()
Return configured instance of the AWS Device Farm client.
|
String |
getDisplayName() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType) |
protected void |
setAkid(String akidValue)
akid Setter
|
protected void |
setRoleArn(String roleArnValue)
roleArn Setter
|
protected void |
setSkid(String skidValue)
skid Setter
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public String roleArn
public hudson.util.Secret akid
public hudson.util.Secret skid
protected final void setRoleArn(String roleArnValue)
roleArnValue
- protected final void setAkid(String akidValue)
akidValue
- protected final void setSkid(String skidValue)
skidValue
- public AWSDeviceFarm getAWSDeviceFarm()
public hudson.util.FormValidation doValidateCredentials(@QueryParameter String roleArn, @QueryParameter String akid, @QueryParameter String skid)
roleArn
- the role arnakid
- the access keyskid
- the secret keypublic hudson.util.FormValidation doCheckProjectName(@QueryParameter String projectName)
projectName
- The currently selected project name.public hudson.util.FormValidation doCheckDevicePoolName(@QueryParameter String devicePoolName)
devicePoolName
- The currently selected device pool name.public hudson.util.FormValidation doCheckAppArtifact(@QueryParameter Boolean ifWebApp, @QueryParameter String appArtifact)
appArtifact
- The String of the application artifact.public hudson.util.FormValidation doCheckAppiumJavaJUnitTest(@QueryParameter String appiumJavaJUnitTest)
appiumJavaJUnitTest
- The path to the test file.public hudson.util.FormValidation doCheckAppiumJavaTestNGTest(@QueryParameter String appiumJavaTestNGTest)
appiumJavaTestNGTest
- The path to the test file.public hudson.util.FormValidation doCheckAppiumPythonTest(@QueryParameter String appiumPythonTest)
appiumPythonTest
- The path to the test file.public hudson.util.FormValidation doCheckAppiumRubyTest(@QueryParameter String appiumRubyTest)
appiumRubyTest
- The path to the test file.public hudson.util.FormValidation doCheckAppiumNodeTest(@QueryParameter String appiumNodeTest)
appiumNodeTest
- The path to the test file.public hudson.util.FormValidation doCheckCalabashFeatures(@QueryParameter String calabashFeatures)
calabashFeatures
- The String of the Calabash features.public hudson.util.FormValidation doCheckJunitArtifact(@QueryParameter String junitArtifact)
junitArtifact
- The String of the jUnit artifact.public hudson.util.FormValidation doCheckUiautomatorArtifact(@QueryParameter String uiautomatorArtifact)
uiautomatorArtifact
- The String of the MonkeyTalk artifact.public hudson.util.FormValidation doCheckXctestArtifact(@QueryParameter String xctestArtifact)
xctestArtifact
- The String of the XCTest artifact.public hudson.util.FormValidation doCheckXctestUiArtifact(@QueryParameter String xctestUiArtifact)
xctestUiArtifact
- The String of the XCTest UI artifact.public hudson.util.FormValidation doCheckIsRunUnmetered(@QueryParameter Boolean isRunUnmetered, @QueryParameter String appArtifact, @QueryParameter Boolean ifWebApp)
isRunUnmetered
- appArtifact
- public hudson.util.FormValidation doCheckJobTimeoutMinutes(@QueryParameter Integer jobTimeoutMinutes)
jobTimeoutMinutes
- The Int of the limit execute time the user typed.public hudson.util.FormValidation doRefresh()
public hudson.util.ListBoxModel doFillProjectNameItems(@QueryParameter String currentProjectName)
public hudson.util.ListBoxModel doFillVpceServiceNameItems(@QueryParameter String currentVpceServiceName)
public hudson.util.ListBoxModel doFillDevicePoolNameItems(@QueryParameter String projectName, @QueryParameter String currentDevicePoolName)
projectName
- Name of the project selected.currentDevicePoolName
- Name of the device pool selected.public hudson.util.ListBoxModel doFillTestSpecNameItems(@QueryParameter String projectName, @QueryParameter String currentTestSpecName)
projectName
- Name of the project selected.currentTestSpecName
- Name of the TestSpec selected.public hudson.util.ListBoxModel doFillAppiumVersionJunitItems(@QueryParameter String currentAppiumVersion)
public hudson.util.ListBoxModel doFillAppiumVersionTestngItems(@QueryParameter String currentAppiumVersion)
public hudson.util.ListBoxModel doFillAppiumVersionPythonItems(@QueryParameter String currentAppiumVersion)
@JavaScriptMethod public String fetchVpcIdFromProjectName(String projectName)
@JavaScriptMethod public String fetchSubnetIdsFromProjectName(String projectName)
@JavaScriptMethod public String fetchSecurityGroupIdsFromProjectName(String projectName)
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
configure
in class hudson.model.Descriptor<hudson.tasks.Publisher>
req
- The StaplerRequest.json
- The JSON to bind this to.public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Publisher>
Copyright © 2016–2024. All rights reserved.