Skip to content

Commit

Permalink
#712 Set HTTPS scheme only if none has been set
Browse files Browse the repository at this point in the history
  • Loading branch information
Dohbedoh committed Aug 12, 2020
1 parent 54b3603 commit 2fd4f7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ public DockerRegistryEndpoint getRegistry() {
/* TODO: Use DockerRegistryEndpoint#fromImageName when JENKINS-63243 is fixed */
String hostname = NameParser.resolveRepositoryName(
NameParser.parseRepositoryTag(getImage()).repos).hostname;
if(!hostname.startsWith("https://")) {
if (!hostname.contains("://")) {
hostname = "https://" + hostname;
}
registry = new DockerRegistryEndpoint(hostname,pullCredentialsId);
Expand Down

0 comments on commit 2fd4f7f

Please sign in to comment.