'Updating job status on SauceLabs via Jenkins Sauce on Demand not working
Below is my code. It was working fine and i was able to see saucelab videos and pass/fail result on jenkins earlier. but now somehow its not working and i am not able to see videos and pass/fail result on jenkin.
public void UpdateResults(boolean testResults)
{
SauceREST saucerest = new SauceREST(USERNAME,ACCESS_KEY);
Map<String,Object> updates = new HashMap<String,Object>();
updates.put("passed", testResults);
saucerest.updateJobInfo(getSessionId(),updates);
}
@After()
public void tierDown()
{
driver.get().quit();
UpdateResults(testResults);
String message = String.format("SauceOnDemandSessionID=%1$s job-
name=%2$s",sessionId.get(),jobName);
System.out.println(message);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
