Skip to content

Commit

Permalink
JENKINS-13798 Set the job status based on the Jenkins Result
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrowe committed Jun 9, 2012
1 parent 9177a5f commit f9d7cb1
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -223,6 +223,7 @@ public boolean tearDown(AbstractBuild build, BuildListener listener) throws IOEx
private void processBuildOutput(AbstractBuild build) {
JobFactory factory = new JobFactory(new Credential(getUserName(), getApiKey()));
//todo we only want to iterate over lines if we're not using junit test results

String[] array = logParser.getLines().toArray(new String[logParser.getLines().size()]);
List<String[]> sessionIDs = SauceOnDemandReportFactory.findSessionIDs(null, array);

Expand All @@ -238,7 +239,7 @@ private void processBuildOutput(AbstractBuild build) {
false,
Collections.<String>emptyList(),
Integer.toString(build.getNumber()),
true,//todo how can we tell if the build has passed or failed here?
build.getResult().equals(Result.SUCCESS),
Collections.<String, Object>emptyMap()));
}
} catch (IOException e) {
Expand Down

0 comments on commit f9d7cb1

Please sign in to comment.