Skip to content

Commit

Permalink
Update dependency io.jenkins.tools.bom:bom-2.440.x to v3435 (#858)
Browse files Browse the repository at this point in the history
* Update dependency io.jenkins.tools.bom:bom-2.440.x to v3435

* fix compile errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit GUERIN <[email protected]>
  • Loading branch information
renovate[bot] and bguerin authored Dec 2, 2024
1 parent 68f979d commit c33920c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private void registerAgentForContainer(GenericContainer<?> slaveContainer) throw
registerAgentForSlaveContainer(slaveContainer);
}

private void addTestSshCredentials() {
private void addTestSshCredentials() throws Exception {
Credentials credentials =
new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL, SSH_CREDENTIALS_ID, null, "test", "test");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private void registerAgentForContainer(GenericContainer<?> container) throws Exc
registerAgentForSlaveContainer(container);
}

private void addTestSshCredentials() {
private void addTestSshCredentials() throws Exception {
Credentials credentials =
new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL, SSH_CREDENTIALS_ID, null, "test", "test");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ public <C extends Credentials> List<C> getCredentials(
ItemGroup itemGroup,
Authentication authentication,
List<DomainRequirement> domainRequirements) {
UsernamePasswordCredentialsImpl creds = new UsernamePasswordCredentialsImpl(GLOBAL, id, "", username, password);
creds.setUsernameSecret(usernameIsSecret);
return (List<C>) asList(creds);
UsernamePasswordCredentialsImpl creds;
try {
creds = new UsernamePasswordCredentialsImpl(GLOBAL, id, "", username, password);
creds.setUsernameSecret(usernameIsSecret);
return (List<C>) asList(creds);
} catch (FormException e) {
throw new IllegalStateException("Cannot create fake credentials", e);
}
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<jenkins-plugin-mysql.version>8.4.0-31.va_b_5ce7933762</jenkins-plugin-mysql.version>
<jenkins-plugin-postgresql.version>42.7.2-40.v76d376d65c77</jenkins-plugin-postgresql.version>
<jenkins-plugin-tasks.version>4.53</jenkins-plugin-tasks.version>
<jenkins-tools-bom.version>3258.vcdcf15936a_fd</jenkins-tools-bom.version>
<jenkins-tools-bom.version>3435.v238d66a_043fb_</jenkins-tools-bom.version>
<jenkins.version>2.440.3</jenkins.version>
<junit.version>5.11.3</junit.version>
<mariadb-client.version>3.5.1</mariadb-client.version>
Expand Down

0 comments on commit c33920c

Please sign in to comment.