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;