fup-try-008

This commit is contained in:
Philippe Caseiro 2023-06-19 14:48:02 +02:00
parent 1cccf13204
commit 932ce45164
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -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