From 66f4ddc340f91cb4adc218168684b1d41fa62e04 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 2 Sep 2021 14:55:12 +0200 Subject: [PATCH] ancora test yaml CiCd --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7e2f36f..5543afd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,10 +42,9 @@ variables: $newContenuto | Set-Content -Path 'VersGen\VersGen.cs' # helper creazione hash files - # $Target = $env:APP_NAME + "\bin\publish\" + $env:APP_NAME + ".zip" .hashBuild: &hashBuild - | - $Target = "\Release\" + $env:APP_NAME + ".zip" + $Target = $env:APP_NAME + "\Release\" + $env:APP_NAME + ".zip" $MD5 = Get-FileHash $Target -Algorithm MD5 $SHA1 = Get-FileHash $Target -Algorithm SHA1 New-Item $Target".md5" @@ -102,8 +101,8 @@ IIS01:deploy: stage: deploy tags: - win - rules: - - if: '$CI_COMMIT_BRANCH == "develop"' +# rules: +# - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - '& "$env:NUGET_PATH" restore NKC_WF.sln' @@ -138,7 +137,7 @@ install: - '& "$env:NUGET_PATH" restore NKC_WF.sln' - *version-fix script: - - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=master.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Releases/NKC.zip /p:DeployIisAppPath="Default Web Site/GPW/ADMIN" /p:PackageAsSingleFile=True /p:OutputPath=bin/ NKC_WF/NKC_WF.csproj' + - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=master.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=${env:APP_NAME}/Releases/${env:APP_NAME}.zip /p:DeployIisAppPath="Default Web Site/GPW/ADMIN" /p:PackageAsSingleFile=True /verbosity:minimal /p:OutputPath=bin/ NKC_WF/NKC_WF.csproj' # qui il deploy su nexus... - *hashBuild - *nexusUpload