diff --git a/Jenkinsfile b/Jenkinsfile index 802027878..2e6638b58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -89,21 +89,22 @@ pipeline { sh 'pnpm install --prefer-offline --prefix=front' } } - stage('Push image') { - environment { - CREDENTIALS = credentials('docker-registry') - IMAGE = "$REGISTRY/verdnatura/salix-back" - } - steps { - script { - def packageJson = readJSON file: 'package.json' - env.VERSION = BRANCH_NAME - } - sh 'docker-compose build back' - sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' - sh 'docker push $IMAGE:$BRANCH_NAME' - } + + } + } + stage('Push image') { + environment { + CREDENTIALS = credentials('docker-registry') + IMAGE = "$REGISTRY/verdnatura/salix-back" + } + steps { + script { + def packageJson = readJSON file: 'package.json' + env.VERSION = BRANCH_NAME } + sh 'docker-compose build back' + sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' + sh 'docker push $IMAGE:$BRANCH_NAME' } } stage('Stack') {