-
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
[JENKINS-38018] withDockerRegistry fails to authenticate with DockerHub
Description |
Original:
When using either `docker.withRegistry('', 'dockerhub')` or `withDockerRegistry(registry: [credentialsId: 'dockerhub'])`, a call to `mycont.push()` fails to authenticate with DockerHub: {code:groovy} withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') } {code} leads to: {code:logs} 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 {code} 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.` |
New:
When using either {{docker.withRegistry('', 'dockerhub')}} or {{withDockerRegistry(registry: [credentialsId: 'dockerhub'])}}, a call to {{mycont.push()}} fails to authenticate with DockerHub: {code:groovy} withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') } {code} leads to: {code:logs} 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 {code} 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.` |
Description |
Original:
When using either {{docker.withRegistry('', 'dockerhub')}} or {{withDockerRegistry(registry: [credentialsId: 'dockerhub'])}}, a call to {{mycont.push()}} fails to authenticate with DockerHub: {code:groovy} withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') } {code} leads to: {code:logs} 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 {code} 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.` |
New:
When using either {{docker.withRegistry('', 'dockerhub')}} or {{withDockerRegistry(registry: [credentialsId: 'dockerhub'])}}, a call to {{mycont.push()}} fails to authenticate with DockerHub: {code:java} withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') } {code} leads to: {code:logs} 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 {code} 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.` |
Description |
Original:
When using either {{docker.withRegistry('', 'dockerhub')}} or {{withDockerRegistry(registry: [credentialsId: 'dockerhub'])}}, a call to {{mycont.push()}} fails to authenticate with DockerHub: {code:java} withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') } {code} leads to: {code:logs} 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 {code} 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.` |
New:
When using either {{docker.withRegistry('', 'dockerhub')}} or {{withDockerRegistry(registry: [credentialsId: 'dockerhub'])}}, a call to {{mycont.push()}} fails to authenticate with DockerHub: {code:java} withDockerRegistry(registry: [credentialsId: 'dockerhub']) { cont.push() cont.push('latest') } {code} leads to: {code:none} 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 {code} 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.` |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Component/s | New: docker-commons-plugin [ 20628 ] |
Status | Original: Reopened [ 4 ] | New: Open [ 1 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "docker-workflow PR 71 (Web Link)" [ 14910 ] |
Link |
New:
This issue relates to |