public class AWSDeviceFarmProjectAction extends Object implements hudson.model.Action
This class is used for the top-level project view of your project if it is configured to use AWS Device Farm. It is responsible for serving up the project level graph (for all AWS Device Farm builds) as well as providing results for the most recent AWS Device Farm runs.
Constructor and Description |
---|
AWSDeviceFarmProjectAction(hudson.model.AbstractProject<?,?> project)
Create new AWS Device Farm project action.
|
Modifier and Type | Method and Description |
---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Return trend graph of all AWS Device Farm results for this project.
|
void |
doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Serve up AWS Device Farm project page which redirects to the latest test results or 404.
|
String |
getDisplayName()
Get the display name.
|
String |
getIconFileName()
Get the icon file name.
|
AWSDeviceFarmTestResultAction |
getLastBuildAction()
Return the action of last build associated with AWS Device Farm.
|
ArrayList<AWSDeviceFarmTestResultAction> |
getLastBuildActions()
Return the action of all previous builds associated with AWS Device Farm.
|
ArrayList<AWSDeviceFarmTestResultAction> |
getLastBuildActions(int n)
Return the actions of 'n' previous builds associated with AWS Device Farm.
|
hudson.model.AbstractProject<?,?> |
getProject()
Get project associated with this action.
|
String |
getUrlName()
Get the URL name.
|
boolean |
shouldDisplayGraph()
Returns true if there are any builds in the associated project.
|
public AWSDeviceFarmProjectAction(hudson.model.AbstractProject<?,?> project)
project
- The Project which this action will be applied to.public hudson.model.AbstractProject<?,?> getProject()
public boolean shouldDisplayGraph()
public AWSDeviceFarmTestResultAction getLastBuildAction()
public ArrayList<AWSDeviceFarmTestResultAction> getLastBuildActions()
public ArrayList<AWSDeviceFarmTestResultAction> getLastBuildActions(int n)
n
- Number of previous builds to get.public void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- The request object.response
- The response object.IOException
public void doGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- The request object.response
- The response object.IOException
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
Copyright © 2016–2024. All rights reserved.