-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
-
docker-workflow 1.18
When using the Authorization Project plugin and using "Run as Specific User" or "Run as User Who Triggered Build" authorize strategy and the following pipeline code:
node { // success withCredentials([usernameColonPassword(credentialsId: '$CredentialsID', variable: 'USERPASS')]) { println "${USERPASS}" } //failure docker.withRegistry('$Url:$Port', '$CredentialsID') { def dockerImage = docker.image('$dockerImageID) dockerImage.push('test') } }
We get an error at the docker.withRegistry step:
ERROR: Could not find credentials matching bonjwa-docker-artl
Note that the previous step withCredentials is successful.
[JENKINS-48437] Docker Pipeline Plugin withRegistry and Authorize Plugin fails to get credentialsId
Description |
Original:
When using the Authorization Project plugin and using "Run as Specific User" or "Run as User Who Triggered Build" authorize strategy and the following pipeline code: node { // success withCredentials([usernameColonPassword(credentialsId: '$CredentialsID', variable: 'USERPASS')]) { println "${USERPASS}" } //failure docker.withRegistry('$Url:$Port', '$CredentialsID') { def dockerImage = docker.image('e0523c97836a') dockerImage.push('test') } } We get an error at the docker.withRegistry step: ERROR: Could not find credentials matching bonjwa-docker-artl Note that the previous step withCredentials is successful. |
New:
When using the Authorization Project plugin and using "Run as Specific User" or "Run as User Who Triggered Build" authorize strategy and the following pipeline code: node { // success withCredentials([usernameColonPassword(credentialsId: '$CredentialsID', variable: 'USERPASS')]) { println "${USERPASS}" } //failure docker.withRegistry('$Url:$Port', '$CredentialsID') { def dockerImage = docker.image('$dockerImageID) dockerImage.push('test') } } We get an error at the docker.withRegistry step: ERROR: Could not find credentials matching bonjwa-docker-artl Note that the previous step withCredentials is successful. |
Remote Link | New: This issue links to "docker-commons PR#68 (Web Link)" [ 20335 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: Allan BURDAJEWICZ [ allan_burdajewicz ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Description |
Original:
When using the Authorization Project plugin and using "Run as Specific User" or "Run as User Who Triggered Build" authorize strategy and the following pipeline code: node { // success withCredentials([usernameColonPassword(credentialsId: '$CredentialsID', variable: 'USERPASS')]) { println "${USERPASS}" } //failure docker.withRegistry('$Url:$Port', '$CredentialsID') { def dockerImage = docker.image('$dockerImageID) dockerImage.push('test') } } We get an error at the docker.withRegistry step: ERROR: Could not find credentials matching bonjwa-docker-artl Note that the previous step withCredentials is successful. |
New:
When using the Authorization Project plugin and using "Run as Specific User" or "Run as User Who Triggered Build" authorize strategy and the following pipeline code: {code} node { // success withCredentials([usernameColonPassword(credentialsId: '$CredentialsID', variable: 'USERPASS')]) { println "${USERPASS}" } //failure docker.withRegistry('$Url:$Port', '$CredentialsID') { def dockerImage = docker.image('$dockerImageID) dockerImage.push('test') } } {code} We get an error at the docker.withRegistry step: {code:none} ERROR: Could not find credentials matching bonjwa-docker-artl {code} Note that the previous step {{withCredentials}} is successful. |
Proposed a PR https://github.com/jenkinsci/docker-commons-plugin/pull/68