public class SauceOnDemandBuildAction extends AbstractAction
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
SESSION_ID_PATTERN
Regex pattern that is used to identify Sauce job ids which have been run as part of a Jenkins build.
|
| Constructor and Description |
|---|
SauceOnDemandBuildAction(hudson.model.AbstractBuild<?,?> build,
SauceOnDemandBuildWrapper.SauceOnDemandLogParser logParser,
String username,
String accessKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKey() |
hudson.model.AbstractBuild<?,?> |
getBuild() |
SauceTestResultsById |
getById(String id) |
List<com.saucelabs.ci.JobInformation> |
getJobs() |
SauceOnDemandBuildWrapper.SauceOnDemandLogParser |
getLogParser() |
protected JenkinsSauceREST |
getSauceREST() |
String |
getUsername() |
boolean |
hasSauceOnDemandResults() |
void |
processSessionIds(hudson.tasks.junit.CaseResult caseResult,
String... output)
Processes the log output, and for lines which are in the valid log format, add a new
JobInformation
instance to the jobInformation list. |
List<com.saucelabs.ci.JobInformation> |
retrieveJobIdsFromSauce()
Invokes the Sauce REST API to retrieve the details for the jobs the user has access to.
|
doJobReport, getDisplayName, getIconFileName, getJobsWithAuth, getUrlNamepublic static final Pattern SESSION_ID_PATTERN
public SauceOnDemandBuildAction(hudson.model.AbstractBuild<?,?> build,
SauceOnDemandBuildWrapper.SauceOnDemandLogParser logParser,
String username,
String accessKey)
public String getAccessKey()
getAccessKey in class AbstractActionpublic String getUsername()
getUsername in class AbstractActionpublic hudson.model.AbstractBuild<?,?> getBuild()
public boolean hasSauceOnDemandResults()
public List<com.saucelabs.ci.JobInformation> getJobs()
getJobs in class AbstractActionpublic List<com.saucelabs.ci.JobInformation> retrieveJobIdsFromSauce() throws IOException, org.json.JSONException, InvalidKeyException, NoSuchAlgorithmException
IOException - Unable to contact serverorg.json.JSONException - Not json returned properlyInvalidKeyException - Bad keysNoSuchAlgorithmException - Should never be returned but can't do encodingprotected JenkinsSauceREST getSauceREST()
public SauceTestResultsById getById(String id)
public SauceOnDemandBuildWrapper.SauceOnDemandLogParser getLogParser()
public void processSessionIds(hudson.tasks.junit.CaseResult caseResult,
String... output)
JobInformation
instance to the jobInformation list.caseResult - test results being processed, can be nulloutput - lines of output to be processed, not nullCopyright © 2004-2015. All Rights Reserved.