Skip to content

Commit 8fdb8cd

Browse files
Bump io.jenkins.tools.bom:bom-2.462.x from 3387.v0f2773fa_3200 to 3413.v0d896b_76a_30d (jenkinsci#1195)
1 parent 08de841 commit 8fdb8cd

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<dependency>
7777
<groupId>io.jenkins.tools.bom</groupId>
7878
<artifactId>bom-${jenkins.baseline}.x</artifactId>
79-
<version>3387.v0f2773fa_3200</version>
79+
<version>3413.v0d896b_76a_30d</version>
8080
<type>pom</type>
8181
<scope>import</scope>
8282
</dependency>

src/test/java/org/jenkinsci/plugins/gitclient/CredentialsTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.cloudbees.plugins.credentials.common.StandardCredentials;
1515
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
1616
import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl;
17+
import hudson.model.Descriptor.FormException;
1718
import hudson.model.Fingerprint;
1819
import hudson.util.LogTaskListener;
1920
import java.io.File;
@@ -137,7 +138,7 @@ public CredentialsTest(
137138
}
138139

139140
@Before
140-
public void setUp() throws IOException, InterruptedException {
141+
public void setUp() throws FormException, IOException, InterruptedException {
141142
git = null;
142143
repo = tempFolder.newFolder();
143144
/* Use a repo with a special character in name - JENKINS-43931 */
@@ -212,7 +213,8 @@ private BasicSSHUserPrivateKey newPrivateKeyCredential(String username, File pri
212213
return new BasicSSHUserPrivateKey(scope, id, username, privateKeySource, this.passphrase, description);
213214
}
214215

215-
private StandardUsernamePasswordCredentials newUsernamePasswordCredential(String username, String password) {
216+
private StandardUsernamePasswordCredentials newUsernamePasswordCredential(String username, String password)
217+
throws FormException {
216218
CredentialsScope scope = CredentialsScope.GLOBAL;
217219
String id = "username-" + username + "-password-" + password + random.nextInt();
218220
return new UsernamePasswordCredentialsImpl(scope, id, "desc: " + id, username, password);

src/test/java/org/jenkinsci/plugins/gitclient/RemoteGitImplTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void testClearCredentials() {
8787
}
8888

8989
@Test
90-
public void testAddCredentials() {
90+
public void testAddCredentials() throws Exception {
9191
CredentialsScope scope = CredentialsScope.GLOBAL;
9292
String password = "password";
9393
String url = "https://github.com/jenkinsci/git-client-plugin";
@@ -99,7 +99,7 @@ public void testAddCredentials() {
9999
}
100100

101101
@Test
102-
public void testSetCredentials() {
102+
public void testSetCredentials() throws Exception {
103103
CredentialsScope scope = CredentialsScope.GLOBAL;
104104
String password = "password";
105105
String username = "user";
@@ -110,7 +110,7 @@ public void testSetCredentials() {
110110
}
111111

112112
@Test
113-
public void testAddDefaultCredentials() {
113+
public void testAddDefaultCredentials() throws Exception {
114114
CredentialsScope scope = CredentialsScope.GLOBAL;
115115
String password = "password";
116116
String username = "user";

0 commit comments

Comments
 (0)