From 2c3861472a3464a1f9ec0232646386e18c7ea062 Mon Sep 17 00:00:00 2001 From: Stas Bezuhlyi <56916662+stasbezuhlyi@users.noreply.github.com> Date: Thu, 8 Apr 2021 21:00:28 +0300 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e015514af..043efba68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,10 +18,6 @@ pipeline { stage('Build') { steps { echo 'Running build automation' - echo '${env.IMAGE_BASE}' - echo '${env.IMAGE_TAG}' - echo '${env.IMAGE_NAME}' - echo '${env.IMAGE_NAME_LATEST}' sh ''' ./mvnw package ''' @@ -30,7 +26,7 @@ pipeline { stage('CREATE ARTIFACT') { steps { echo 'Creating Docker Image...' - sh ''' + sh '''#!/bin/bash -xe docker build . -t ${env.IMAGE_NAME} -f ${env.DOCKERFILE_NAME} ''' } @@ -38,6 +34,7 @@ pipeline { stage('Push artifact to docker registry') { steps { script { + #!/bin/bash -xe docker.withRegistry('', 'dockerhub_id') { dockerImage.push() dockerImage.push("latest")