adding credentials

This commit is contained in:
areeqakbr 2025-02-25 09:23:13 +07:00
parent 22185413a9
commit 3faf5affc1
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -28,9 +28,9 @@ pipeline {
steps {
script {
withCredentials([usernamePassword(credentialsId: "${DOCKERUSRPASS}", usernameVariable: 'REGISTRY_USER', passwordVariable: 'REGISTRY_TOKEN')]) {
sh """
echo '${REGISTRY_TOKEN}' | docker login ${REGISTRY_URL} --username ${REGISTRY_USER} --password-stdin
"""
sh '
echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_URL" --username ${REGISTRY_USER} --password-stdin
'
}
}
}