public class AWSDeviceFarmUtils extends Object
Constructor and Description |
---|
AWSDeviceFarmUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getProjectIdFromArn(String arn)
Get the Device Farm project ID from the Device Farm run ARN.
|
static String |
getRunIdFromArn(String arn)
Get the Device Farm run ID from the Device Farm run ARN.
|
static String |
getRunUrlFromArn(String arn)
Get the Device Farm run URL from the Device Farm run ARN.
|
static hudson.model.AbstractBuild<?,?> |
previousAWSDeviceFarmBuild(hudson.model.AbstractProject<?,?> project)
Returns the most recent build which contained an AWS Device Farm test run.
|
static AWSDeviceFarmTestResultAction |
previousAWSDeviceFarmBuildAction(hudson.model.AbstractProject<?,?> project)
Returns the AWS Device Farm test run action from the most recent build.
|
static AWSDeviceFarmTestResult |
previousAWSDeviceFarmBuildResult(hudson.model.Job job)
Returns the most recent AWS Device Farm test result from the previous build.
|
static ArrayList<AWSDeviceFarmTestResultAction> |
previousAWSDeviceFarmBuilds(hudson.model.AbstractProject<?,?> project)
Return collection of all previous builds of the given project which contain an AWS Device Farm test run.
|
static String[] |
splitRunArn(String arn)
Split the run ARN into Device Farm run and project IDs.
|
public static AWSDeviceFarmTestResultAction previousAWSDeviceFarmBuildAction(hudson.model.AbstractProject<?,?> project)
project
- The Jenkins project which contains builds/runs to examine.public static hudson.model.AbstractBuild<?,?> previousAWSDeviceFarmBuild(hudson.model.AbstractProject<?,?> project)
project
- The Jenkins project which contains runs to examine.public static ArrayList<AWSDeviceFarmTestResultAction> previousAWSDeviceFarmBuilds(hudson.model.AbstractProject<?,?> project)
project
- The Jenkins project which contains runs to examine.public static AWSDeviceFarmTestResult previousAWSDeviceFarmBuildResult(hudson.model.Job job)
job
- The job which generated an AWS Device Farm test resultpublic static String getRunUrlFromArn(String arn)
arn
- The Device Farm run ARN.public static String getRunIdFromArn(String arn)
arn
- The Device Farm run ARN.public static String getProjectIdFromArn(String arn)
arn
- The Device Farm run ARN.Copyright © 2016–2024. All rights reserved.