ancora test yaml CiCd

This commit is contained in:
Samuele Locatelli
2021-09-02 14:55:12 +02:00
parent f5dec22e60
commit 66f4ddc340
+4 -5
View File
@@ -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