Skip to content

Commit 2875181

Browse files
committed
Temporarily disable SSH support, so that checkout works
1 parent d55dbe7 commit 2875181

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMBuilder.java

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -225,32 +225,7 @@ public GitHubSCMBuilder withCredentials(String credentialsId, RepositoryUriResol
225225
@NonNull
226226
public static RepositoryUriResolver uriResolver(@CheckForNull Item context, @NonNull String apiUri,
227227
@CheckForNull String credentialsId) {
228-
if (credentialsId == null) {
229-
return HTTPS;
230-
} else {
231-
StandardCredentials credentials = CredentialsMatchers.firstOrNull(
232-
CredentialsProvider.lookupCredentials(
233-
StandardCredentials.class,
234-
context,
235-
context instanceof Queue.Task
236-
? ((Queue.Task) context).getDefaultAuthentication()
237-
: ACL.SYSTEM,
238-
URIRequirementBuilder.create()
239-
.withHostname(RepositoryUriResolver.hostnameFromApiUri(apiUri))
240-
.build()
241-
),
242-
CredentialsMatchers.allOf(
243-
CredentialsMatchers.withId(credentialsId),
244-
CredentialsMatchers.instanceOf(StandardCredentials.class)
245-
)
246-
);
247-
if (credentials instanceof SSHUserPrivateKey) {
248-
return SSH;
249-
} else {
250-
// Defaults to HTTP/HTTPS
251-
return HTTPS;
252-
}
253-
}
228+
return HTTPS;
254229
}
255230

256231
/**

0 commit comments

Comments
 (0)