Обновить Jenkinsfile
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -47,7 +47,7 @@ pipeline {
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: 'build', usernameVariable: 'USER', passwordVariable: 'PASS')]) {
|
||||
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}"
|
||||
sh "cd build/docker && docker build -t ${appImage} ."
|
||||
|
||||
Reference in New Issue
Block a user