fix(pipeline): update steps.withCredentials to use steps.usernamePassword for authentication
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
a92eb07a9b
commit
a02715efa7
@ -27,7 +27,7 @@ class ImageBuilder {
|
||||
architectures = ['linux/amd64']
|
||||
}
|
||||
|
||||
steps.withCredentials([usernamePassword(credentialsId: registryCredentialsId, passwordVariable: 'DOCKER_PASSWORD', usernameVariable: 'DOCKER_USERNAME')]) {
|
||||
steps.withCredentials([steps.usernamePassword(credentialsId: registryCredentialsId, passwordVariable: 'DOCKER_PASSWORD', usernameVariable: 'DOCKER_USERNAME')]) {
|
||||
steps.log.info("ImageBuilder", "Authentication to ${registry}")
|
||||
switch(builderType) {
|
||||
case ImageBuilderTypes.DOCKER_IN_DOCKER:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user