test multistep ps script

This commit is contained in:
Samuele Locatelli
2021-03-29 12:37:37 +02:00
parent f9b506bc00
commit ea85576de1
+3 -2
View File
@@ -5,7 +5,6 @@ variables:
EXE_RELEASE_FOLDER: 'c:\Projetcs\Compiled\GPW\Release'
DEPLOY_FOLDER: 'c:\Projects\Deploy\GPW\Builds'
VERS_MAIN: '2.7'
REL_NUM: '4159'
VERS_NUMBER: '$VERS_MAIN.2103.$CI_PIPELINE_IID'
# EXE_RELEASE_FOLDER: 'YourApp\bin\Release'
# MSI_RELEASE_FOLDER: 'Setup\bin\Release'
@@ -42,7 +41,9 @@ variables:
.version-fix: &version-fix
- |
echo "Set vers: $env:VERS_NUMBER"
& ((Get-Content -path 'VersGen\GPW.cs' -Raw) -replace '0.0.0.0','$env:VERS_NUMBER') | Set-Content -Path 'VersGen\GPW.cs'
$contenuto = Get-Content -path 'VersGen\GPW.cs' -Raw
$newContenuto = $contenuto -replace -replace '0.0.0.0','$env:VERS_NUMBER'
$newContenuto | Set-Content -Path 'VersGen\GPW.cs'
stages:
- build