From 932ce451643e9a886da0e4a041be13f6a0e52f0f Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 19 Jun 2023 14:48:02 +0200 Subject: [PATCH] fup-try-008 --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c763ef..5e00f95 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,11 +9,12 @@ symfonyAppPipeline('ubuntu:22.04', [ // Run docker image build, verification and publication stages 'postSymfonyAppPipeline': { stage('Build and publish hydra-dispatcher image') { + sh() // Retrieve current tag String currentTag = sh(script: 'git tag --points-at HEAD | head -n 1', returnStdout: true).trim() // Retrieve default tag String defaultTag = sh(returnStdout: true, script: 'git describe --always').trim() - sh(returnStdout: true, script: 'pwd').trim() + sh(script: 'pwd').trim() container.buildAndPublishImage([ 'imageName': 'reg.cadoles.com/pcaseiro/myapplication-standalone', // Use current tag or default tag if not defined