From a9134f502d0b59b03dc2d96ea1ba5e2b2ac15ff8 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Tue, 16 Apr 2024 16:08:37 +0200 Subject: [PATCH] in yaml modifica compilazione per dev --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1d2f6a..e97bba7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -122,10 +122,12 @@ variables: echo "-----------------------" echo " Calcolo versione - DEV" echo "-----------------------" + $commitAuthor = $CI_COMMIT_AUTHOR -split " " + $commitAuthor = $commitAuthor[1] $fPath = "$env:MACH_NAME.mlde"; $vLine = Select-String -path $fPath -Pattern 'PP_VER'; $comp = $vLine -split "="; - $env:MACH_VERS = $comp[1].Replace("'","").Trim() + "_DEV_" + $CI_COMMIT_AUTHOR + $env:MACH_VERS = $comp[1].Replace("'","").Trim() + "_DEV_" # display versione Write-Output $env:MACH_VERS;