in yaml modifica compilazione per dev

This commit is contained in:
luca.mazzoleni
2024-04-16 16:08:37 +02:00
parent d226d1a5c1
commit a9134f502d
+3 -1
View File
@@ -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;