diff --git a/pom.xml b/pom.xml index 6537e94..ae5cdb3 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,7 @@ THE SOFTWARE. io.jenkins.tools.bom bom-${jenkins.baseline}.x - 3208.vb_21177d4b_cd9 + 3413.v0d896b_76a_30d import pom diff --git a/src/test/java/jenkins/plugins/http_request/HttpRequestStepCredentialsTest.java b/src/test/java/jenkins/plugins/http_request/HttpRequestStepCredentialsTest.java index 5c87653..9078612 100644 --- a/src/test/java/jenkins/plugins/http_request/HttpRequestStepCredentialsTest.java +++ b/src/test/java/jenkins/plugins/http_request/HttpRequestStepCredentialsTest.java @@ -12,6 +12,7 @@ import com.cloudbees.plugins.credentials.domains.Domain; import com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl; import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl; +import hudson.model.Descriptor.FormException; import hudson.model.Fingerprint; import hudson.model.Result; @@ -55,7 +56,7 @@ String getLogAsStringPlaintext(WorkflowRun f) throws java.io.IOException { private File p12simple; private File p12trusted; - private StandardCredentials getInvalidCredential() { + private StandardCredentials getInvalidCredential() throws FormException { String username = "bad-user"; String password = "bad-password"; CredentialsScope scope = CredentialsScope.GLOBAL; diff --git a/src/test/java/jenkins/plugins/http_request/HttpRequestTestBase.java b/src/test/java/jenkins/plugins/http_request/HttpRequestTestBase.java index f799cf9..3d89892 100644 --- a/src/test/java/jenkins/plugins/http_request/HttpRequestTestBase.java +++ b/src/test/java/jenkins/plugins/http_request/HttpRequestTestBase.java @@ -35,6 +35,7 @@ import org.junit.Rule; import org.jvnet.hudson.test.JenkinsRule; +import hudson.model.Descriptor.FormException; import com.cloudbees.plugins.credentials.Credentials; import com.cloudbees.plugins.credentials.CredentialsScope; import com.cloudbees.plugins.credentials.SystemCredentialsProvider; @@ -56,7 +57,7 @@ final String baseURL() { return SERVER.baseURL; } - void registerBasicCredential(String id, String username, String password) { + void registerBasicCredential(String id, String username, String password) throws FormException { credentials.get(Domain.global()).add( new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL, id, "", username, password));