Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #223 from mcvidanagama/2.1.0-Beta
Browse files Browse the repository at this point in the history
build logs check response  status code
  • Loading branch information
mcvidanagama committed May 20, 2015
2 parents 627a3cb + 15d0ddb commit d4adb79
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@
var AuthHeaderVal = " Basic " + mod.getBasicAuthHeaderValue();
var headers = {"Authorization": AuthHeaderVal};
var test = get(buildLogUrl, {}, headers, "text/html");
print(test.data);
if (test.xhr.status == "200") {
print(test.data);
}
else {
print("No Build logs available.");
}
}
else if (action == "getBuildLogsUrl") {
mod = jagg.module("build");
Expand Down

0 comments on commit d4adb79

Please sign in to comment.