diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 456e30a..a38ef83 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -135,7 +135,7 @@ variables: # calcolo versione formato stringa $fPath = "$env:MACH_NAME.mlde"; - $vLine = Select-String -path $fPath -Pattern 'PP_VER'; + $vLine = Select-String -path $fPath -Pattern '^PP_VER'; $comp = $vLine -split "="; $env:MACH_VERS = $comp[1].Replace("'","").Trim() # display versione formato stringa @@ -143,7 +143,7 @@ variables: # calcolo versione formato numerico $fPath = "$env:MACH_NAME.mlde"; - $vLine = Select-String -path $fPath -Pattern 'PP_NVER'; + $vLine = Select-String -path $fPath -Pattern '^PP_NVER'; $comp = $vLine -split "="; $env:MACH_VERS_NUM = $comp[1].Replace("'","").Trim() # display versione formato numerico