Skip to content

Commit d37613f

Browse files
committed
Revert changes unrelated to JENKINS-73250 in BitbucketSCMSource in commit 44fd744
1 parent 44fd744 commit d37613f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMSource.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,9 +1005,8 @@ public SCM build(SCMHead head, SCMRevision revision) {
10051005
.anyMatch(SSHCheckoutTrait.class::isInstance);
10061006

10071007
BitbucketAuthenticator authenticator = authenticator();
1008-
GitSCMExtension gitExtension = authenticator == null || sshAuth ? null : new GitClientAuthenticatorExtension(authenticator.getCredentialsForSCM());
1009-
return new BitbucketGitSCMBuilder(this, head, revision, gitExtension == null ? credentialsId : null)
1010-
.withExtension(gitExtension)
1008+
return new BitbucketGitSCMBuilder(this, head, revision, null)
1009+
.withExtension(authenticator == null || sshAuth ? null : new GitClientAuthenticatorExtension(authenticator.getCredentialsForSCM()))
10111010
.withCloneLinks(primaryCloneLinks, mirrorCloneLinks)
10121011
.withTraits(traits)
10131012
.build();

0 commit comments

Comments
 (0)