diff --git a/src/main/java/jenkins/plugins/http_request/auth/CertificateAuthentication.java b/src/main/java/jenkins/plugins/http_request/auth/CertificateAuthentication.java index 54d44a57..1fe70302 100644 --- a/src/main/java/jenkins/plugins/http_request/auth/CertificateAuthentication.java +++ b/src/main/java/jenkins/plugins/http_request/auth/CertificateAuthentication.java @@ -35,7 +35,10 @@ public CloseableHttpClient authenticate(HttpClientBuilder clientBuilder, credentials.getPassword().getPlainText().toCharArray()).build()); return clientBuilder.build(); - } catch (Exception e) { + }catch(RuntimeException e){ + throw new RuntimeException(e); + } + catch (Exception e) { throw new IOException(e); } } diff --git a/src/spotbugs/spotbugs-excludes.xml b/src/spotbugs/spotbugs-excludes.xml index 7b5ec41f..a8d4a31f 100644 --- a/src/spotbugs/spotbugs-excludes.xml +++ b/src/spotbugs/spotbugs-excludes.xml @@ -14,12 +14,6 @@ - - - - - -