From 9cda07bc5aa30f0f3fc04c5b52e42e886b02ae6d Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sun, 4 Feb 2024 21:09:49 +0100 Subject: [PATCH] ci: refs#6706 Jenkinsfile tuning --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d3379b19ff..285906b8f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,7 @@ pipeline { STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}" } stages { - stage('Install') { + stage('Stack') { environment { NODE_ENV = "" TZ = 'Europe/Madrid' @@ -130,7 +130,7 @@ pipeline { }} } } - stage('Build') { + stage('Push') { when { expression { RUN_BUILD } } @@ -142,7 +142,8 @@ pipeline { def packageJson = readJSON file: 'package.json' env.VERSION = packageJson.version } - dockerBuild() + sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' + sh 'docker-compose push' } } stage('Deploy') {