Skip to content

Commit

Permalink
[FIXED JENKINS-39538] "Claim it" link for tests didn't work when Buil…
Browse files Browse the repository at this point in the history
…d-Failure-Analyzer wasn't installed. Leading to Javascript errors such as "Uncaught ReferenceError: ShowPopup is not defined".
  • Loading branch information
rkettelerij committed Nov 7, 2016
1 parent 99963f0 commit e83bf64
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -217,16 +217,14 @@ public String getReason() {
}

public String fillReason() throws Exception {
JSONObject json = new JSONObject();
if(ClaimBuildFailureAnalyzer.isBFAEnabled()) {
HashMap<String, String> map = ClaimBuildFailureAnalyzer.getFillReasonMap();
JSONObject json = new JSONObject();
for (String key : map.keySet()) {
json.put(key, map.get(key));
}
String causeMap = json.toString();
return causeMap;
}
return null;
return json.toString();
}

public void setReason(String reason) {
Expand Down

0 comments on commit e83bf64

Please sign in to comment.