-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.7.3, docker-workflow 1.7
When using either docker.withRegistry('', 'dockerhub') or withDockerRegistry(registry: [credentialsId: 'dockerhub']), a call to mycont.push() fails to authenticate with DockerHub:
withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') }
leads to:
Proceeding [Pipeline] withDockerRegistry [Pipeline] { [Pipeline] sh [test] Running shell script + docker tag --force=true camptocamp/jenkins-test camptocamp/jenkins-test:latest unknown flag: --force See 'docker tag --help'. + docker tag camptocamp/jenkins-test camptocamp/jenkins-test:latest [Pipeline] sh [test] Running shell script + docker push camptocamp/jenkins-test:latest The push refers to a repository [docker.io/camptocamp/jenkins-test] 749689370cd8: Preparing unauthorized: authentication required [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline
I have the credentials set up properly in Jenkins, as shown in the attached screenshot, but Jenkins Credentials Manager says `This credential has not been recorded as used anywhere.`
- is blocked by
-
JENKINS-51395 withDockerRegistry([...]) syntax no longer accepted
- Resolved
-
JENKINS-51397 docker login being called without server-related environment variables
- Resolved
- is duplicated by
-
JENKINS-41051 withRegistry is not doing a "docker login"
- Resolved
-
JENKINS-48458 Multiple jobs running in parallel on the same agent using the Docker Workflow Plugin withRegistry results in overwritten credentials
- Resolved
-
JENKINS-32022 Auth hash for .docker/config.json is not correct format in jenkins 1.6+
- Resolved
- is related to
-
JENKINS-34958 Getting "Your Authorization Token has expired" when using ECR credentials
- Resolved
-
JENKINS-44143 ECR plugin: no basic auth credentials
- Closed
-
JENKINS-45851 Your Authorization Token is invalid.
- Closed
- relates to
-
JENKINS-33985 Credentials always points to https://index.docker.io/v1 even for private registry
- Resolved
-
JENKINS-51406 Integrate with new docker login APIs
- Open
-
JENKINS-51407 Integrate with new docker login APIs
- Open
-
JENKINS-51949 Docker agent in declarative pipeline failing to login to custom registry
- Open
-
JENKINS-28702 Clean up registry credentials
- Resolved
-
JENKINS-46321 JSONException: null object when 'auths' key is not exist in .docker/config.json file.
- Resolved
- links to