Skip to content

Commit

Permalink
Simplify DownloadUtils::isJenkinsAvailable (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
praj-foss authored and skaldarnar committed Jun 20, 2019
1 parent 28a88a7 commit 1841723
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -200,12 +200,10 @@ public static boolean isJenkinsAvailable() {
if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {
logger.trace("Jenkins is available at {}", JENKINS_URL);
return true;
} else {
throw new ConnectException();
}
}
} catch (Exception e) {
logger.warn("Could not connect to Jenkins at {}", JENKINS_URL);
logger.warn("Could not connect to Jenkins at {} - {}", JENKINS_URL, e.getMessage());
}
return false;
}
Expand Down

0 comments on commit 1841723

Please sign in to comment.