From 8cfd1f5932ef8736fbeb18bc3bb7dfcce1a81b67 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 14 Apr 2022 17:26:59 +0200 Subject: [PATCH] Commentate parti MON --- .gitlab-ci.yml | 124 ++++++++++++++++++++++++------------------------- 1 file changed, 60 insertions(+), 64 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8832a75..6a846f19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,6 @@ variables: # helper creazione hash files x IIS .hashBuild: &hashBuild - # $Target = $env:APP_NAME + "\ReleaseClienti\MAPO_PROD\" + $env:NEW_REL + "\" + $env:APP_NAME + ".zip" - | $Target = $env:APP_NAME + "\Release\" + $env:APP_NAME + ".zip" $MD5 = Get-FileHash $Target -Algorithm MD5 @@ -156,7 +155,6 @@ IO:build: script: - '& "$env:MSBUILD_PATH" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' - SITE:build: stage: build variables: @@ -172,20 +170,20 @@ SITE:build: script: - '& "$env:MSBUILD_PATH" MP-SITE/MP-SITE.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' -MON:build: - stage: build - variables: - CURR_PRJ: "MP-MON" - tags: - - win - rules: - - if: '$CI_COMMIT_BRANCH != "SDK"' - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' +# MON:build: +# stage: build +# variables: +# CURR_PRJ: "MP-MON" +# tags: +# - win +# rules: +# - if: '$CI_COMMIT_BRANCH != "SDK"' +# before_script: +# - *nuget-fix +# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - *version-fix +# script: +# - '& "$env:MSBUILD_PATH" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' TAB:build: stage: build @@ -259,19 +257,19 @@ SITE:staging: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-SITE/MP-SITE.csproj' needs: ["SITE:build"] -MON:staging: - stage: staging - tags: - - win - rules: - - if: '$CI_COMMIT_BRANCH == "develop"' - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj' - needs: ["MON:build"] +# MON:staging: +# stage: staging +# tags: +# - win +# rules: +# - if: '$CI_COMMIT_BRANCH == "develop"' +# before_script: +# - *nuget-fix +# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - *version-fix +# script: +# - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj' +# needs: ["MON:build"] TAB:staging: stage: staging @@ -343,19 +341,19 @@ SITE:deploy: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-SITE/MP-SITE.csproj' needs: ["SITE:build"] -MON:deploy: - stage: deploy - tags: - - win - rules: - - if: '$CI_COMMIT_BRANCH == "master"' - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj' - needs: ["MON:build"] +# MON:deploy: +# stage: deploy +# tags: +# - win +# rules: +# - if: '$CI_COMMIT_BRANCH == "master"' +# before_script: +# - *nuget-fix +# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - *version-fix +# script: +# - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj' +# needs: ["MON:build"] TAB:deploy: stage: deploy @@ -448,27 +446,26 @@ SITE:install: - *nexusUpload needs: ["SITE:build"] - -MON:install: - stage: installer - tags: - - win - rules: - - if: '$CI_COMMIT_BRANCH == "master"' - when: manual - - if: '$CI_COMMIT_BRANCH == "develop"' - variables: - APP_NAME: MP-MON - NEXUS_PATH: MP-MON - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/MON" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - - *hashBuild - - *nexusUpload - needs: ["MON:build"] +# MON:install: +# stage: installer +# tags: +# - win +# rules: +# - if: '$CI_COMMIT_BRANCH == "master"' +# when: manual +# - if: '$CI_COMMIT_BRANCH == "develop"' +# variables: +# APP_NAME: MP-MON +# NEXUS_PATH: MP-MON +# before_script: +# - *nuget-fix +# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - *version-fix +# script: +# - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/MON" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' +# - *hashBuild +# - *nexusUpload +# needs: ["MON:build"] TAB:install: stage: installer @@ -511,4 +508,3 @@ MAG:install: - *hashBuild - *nexusUpload needs: ["MAG:build"] -