jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-63264] Docker Pipeline: Hardcoded requirement to prefix registry with https:// doesn't work with Nexus

Open
#654 2 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

When creating a Multibranch Pipeline job (or globally in Jenkins configuration), it is possible to specify an alternate Docker registry to pull images from. Unfortunately, the input field considers URLs w/o "https://" prefix as invalid, which is wrong if the registry is hosted on a Sonatype Nexus repository server or in AWS ECR. In this case the registry must be provided as either : (Nexus) or just (AWS ECR), but this is not accepted.

However, it's working fine when using Docker commands directly, for example:

docker login :

or

docker push :/:

Please fix the plugin so that it works with above Docker registries.

---
Originally reported by dhs, imported from: Docker Pipeline: Hardcoded requirement to prefix registry with https:// doesn't work with Nexus


  • status: Open
  • priority: Major
  • component(s): docker-workflow-plugin
  • label(s): AWS, Docker, ECR, Nexus, Registry, Sonatype
  • resolution: Unresolved
  • votes: 1
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

When creating a Multibranch Pipeline job (or globally in Jenkins configuration), it is possible to specify an alternate Docker registry to pull images from. Unfortunately, the input field considers URLs w/o "https://" prefix as invalid, which is wrong if the registry is hosted on a Sonatype Nexus repository server or in AWS ECR. In this case the registry must be provided as either <hostname>:<port> (Nexus) or just <hostname> (AWS ECR), but this is not accepted.

However, it's working fine when using Docker commands directly, for example:



docker login <hostname>:<port>


or



docker push <hostname>:<port>/<image>:<tag>


Please fix the plugin so that it works with above Docker registries.

environment

```
Linux

Sonatype Nexus as Docker registry

Amazon Web Services ECR
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.