Skip to content

Commit

Permalink
Merge pull request #1458 from Vlatombe/jep-227
Browse files Browse the repository at this point in the history
jep-227 downstream usage
  • Loading branch information
jglick authored Nov 1, 2023
2 parents 1b49bd6 + 618d9bb commit 7df85e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@
<artifactId>mockwebserver</artifactId>
<version>4.9.3</version><!-- should be aligned with the version provided by okhttp-api-plugin -->
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>1307.v3757c78f17c3</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ private static StandardCredentials resolveCredentials(@CheckForNull String crede
return null;
}
StandardCredentials c = CredentialsMatchers.firstOrNull(
CredentialsProvider.lookupCredentials(
CredentialsProvider.lookupCredentialsInItemGroup(
StandardCredentials.class,
Jenkins.get(),
ACL.SYSTEM,
ACL.SYSTEM2,
Collections.emptyList()
),
CredentialsMatchers.allOf(
Expand Down

0 comments on commit 7df85e7

Please sign in to comment.