Package hudson.plugins.sauce_ondemand
Class SauceOnDemandProjectAction
- java.lang.Object
-
- hudson.plugins.sauce_ondemand.AbstractAction
-
- hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction
-
- All Implemented Interfaces:
Action
,ModelObject
public class SauceOnDemandProjectAction extends AbstractAction
Backing logic for the Sauce UI component displayed on the Jenkins project page.- Author:
- Ross Rowe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SauceOnDemandProjectAction.BuildSupportZipUtils
-
Constructor Summary
Constructors Constructor Description SauceOnDemandProjectAction(AbstractProject<?,?> project)
Deprecated.SauceOnDemandProjectAction(Job<?,?> job)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doGenerateSupportZip(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Map<String,String>
getAnalytics()
JenkinsBuildInformation
getBuild()
protected SauceCredentials
getCredentials()
List<JenkinsJobInformation>
getJobs()
List<JenkinsJobInformation>
getJobsWithAuth()
AbstractProject<?,?>
getProject()
Deprecated.boolean
hasSauceOnDemandResults()
boolean
isSauceEnabled()
-
Methods inherited from class hudson.plugins.sauce_ondemand.AbstractAction
doJobReport, getDisplayName, getIconFileName, getUrlName
-
-
-
-
Field Detail
-
job
public transient Job<?,?> job
Project that owns this action.- Since:
- 1.153
-
-
Constructor Detail
-
SauceOnDemandProjectAction
@Deprecated public SauceOnDemandProjectAction(AbstractProject<?,?> project)
Deprecated.Constructs a new instance.- Parameters:
project
- the Jenkins project that is being displayed
-
SauceOnDemandProjectAction
public SauceOnDemandProjectAction(Job<?,?> job)
Constructs a new instance.- Parameters:
job
- the Jenkins job that is being displayed
-
-
Method Detail
-
getProject
@Deprecated public AbstractProject<?,?> getProject()
Deprecated.- Returns:
- The Jenkins project that is being displayed
-
hasSauceOnDemandResults
public boolean hasSauceOnDemandResults()
- Returns:
- Whether sauce results were found for this project/builds
-
isSauceEnabled
public boolean isSauceEnabled()
- Returns:
- boolean indicating whether the build is configured to include Sauce support
-
getJobsWithAuth
public List<JenkinsJobInformation> getJobsWithAuth()
- Overrides:
getJobsWithAuth
in classAbstractAction
-
getJobs
public List<JenkinsJobInformation> getJobs()
- Specified by:
getJobs
in classAbstractAction
-
getBuild
public JenkinsBuildInformation getBuild()
-
getCredentials
protected SauceCredentials getCredentials()
- Specified by:
getCredentials
in classAbstractAction
-
doGenerateSupportZip
public void doGenerateSupportZip(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, InterruptedException
- Throws:
IOException
javax.servlet.ServletException
IllegalAccessException
NoSuchMethodException
InvocationTargetException
InterruptedException
-
-