Обновить Jenkinsfile

This commit is contained in:
2026-04-01 18:30:19 +03:00
parent e33b2a2b94
commit cec19f4fe1

2
Jenkinsfile vendored
View File

@ -47,7 +47,7 @@ pipeline {
script { script {
withCredentials([usernamePassword(credentialsId: 'build', usernameVariable: 'USER', passwordVariable: 'PASS')]) { withCredentials([usernamePassword(credentialsId: 'build', usernameVariable: 'USER', passwordVariable: 'PASS')]) {
sh ''' sh '''
echo "$PASS" | docker login --username "$USER" --password-stdin $REGISTRY echo "$PASS" | docker login --username "$USER" --password-stdin <%%FACTORY_REGISTRY_REPO%%>
''' '''
def appImage = "<%%FACTORY_REGISTRY_IMAGE%%>:${env.VERSION}" def appImage = "<%%FACTORY_REGISTRY_IMAGE%%>:${env.VERSION}"
sh "cd build/docker && docker build -t ${appImage} ." sh "cd build/docker && docker build -t ${appImage} ."