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 classSauceOnDemandProjectAction.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 voiddoGenerateSupportZip(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Map<String,String>getAnalytics()JenkinsBuildInformationgetBuild()protected SauceCredentialsgetCredentials()List<JenkinsJobInformation>getJobs()List<JenkinsJobInformation>getJobsWithAuth()AbstractProject<?,?>getProject()Deprecated.booleanhasSauceOnDemandResults()booleanisSauceEnabled()-
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:
getJobsWithAuthin classAbstractAction
-
getJobs
public List<JenkinsJobInformation> getJobs()
- Specified by:
getJobsin classAbstractAction
-
getBuild
public JenkinsBuildInformation getBuild()
-
getCredentials
protected SauceCredentials getCredentials()
- Specified by:
getCredentialsin 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:
IOExceptionjavax.servlet.ServletExceptionIllegalAccessExceptionNoSuchMethodExceptionInvocationTargetExceptionInterruptedException
-
-