Skip to content

Commit

Permalink
Merge pull request #23 from rkettelerij/JENKINS-39538
Browse files Browse the repository at this point in the history
[JENKINS-39538] "Claim it" link for tests didn't work when BFA plugin isn't installed
  • Loading branch information
ki82 committed Nov 8, 2016
2 parents ad3ea11 + e83bf64 commit a45c19c
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 a45c19c

Please sign in to comment.