Commentate parti MON

This commit is contained in:
Samuele Locatelli
2022-04-14 17:26:59 +02:00
parent 24457de564
commit 8cfd1f5932
+60 -64
View File
@@ -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"]