diff --git a/pom.xml b/pom.xml index 966855a..73f533b 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ 999999-SNAPSHOT 8 - 2.289.1 + 2.331 jenkinsci/${project.artifactId}-plugin @@ -31,8 +31,8 @@ io.jenkins.tools.bom - bom-2.289.x - 1075.v14bef33e5d7b + bom-weekly + 1117.v62a_f6a_01de98 import pom @@ -53,10 +53,6 @@ org.hamcrest hamcrest-core - - javax.annotation - javax.annotation-api - @@ -79,7 +75,7 @@ io.jenkins.plugins javax-mail-api - 1.6.2-2 + 1.6.2-5 org.mockito diff --git a/src/test/java/hudson/tasks/MailerTest.java b/src/test/java/hudson/tasks/MailerTest.java index 0f7f739..c43834b 100644 --- a/src/test/java/hudson/tasks/MailerTest.java +++ b/src/test/java/hudson/tasks/MailerTest.java @@ -62,6 +62,7 @@ import jenkins.model.JenkinsLocationConfiguration; import java.io.IOException; +import java.io.UncheckedIOException; import java.lang.reflect.InvocationTargetException; import java.util.Collection; import java.util.Optional; @@ -298,7 +299,11 @@ public CleanJenkinsLocationConfiguration() { @Override public synchronized void load() { - getConfigFile().delete(); + try { + getConfigFile().delete(); + } catch (IOException e) { + throw new UncheckedIOException(e); + } super.load(); } };