[skip ci] Fix push image groovy style. (#10842)

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
pull/10204/head
edward.zeng 2021-10-28 19:53:23 +08:00 committed by GitHub
parent 997fed0ddd
commit d19511341d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ pipeline {
docker logout
"""
}
}
withCredentials([usernamePassword(credentialsId: "${env.HARBOR_CREDENTIAL_ID}", usernameVariable: 'HARBOR_USERNAME', passwordVariable: 'HARBOR_PASSWORD')]) {
sh 'docker login harbor.zilliz.cc -u ${HARBOR_USERNAME} -p ${HARBOR_PASSWORD}'
sh """
@ -61,6 +61,7 @@ pipeline {
docker logout
"""
}
}
}
}
}