From 94b0447c873f2de063a8bf276f294b0f40873755 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 29 Mar 2021 12:51:57 +0200 Subject: [PATCH] vers numb variabile --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85db982..431a2b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,7 +40,8 @@ variables: # helper x fix version number .version-fix: &version-fix - | - echo "Set vers: $env:VERS_NUMBER" + $newRel = $VERS_NUMBER+"."+(get-date –format yyMM)+"."+$CI_PIPELINE_IID + echo "New Rel: $newRel | Set vers: $env:VERS_NUMBER" $contenuto = Get-Content -path 'VersGen\GPW.cs' -Raw $newContenuto = $contenuto -replace '0.0.0.0', $env:VERS_NUMBER $newContenuto | Set-Content -Path 'VersGen\GPW.cs'