From 93e13da83bdf75558b41b17db1faa80f5513c66a Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 21 Sep 2021 18:09:57 +0200 Subject: [PATCH] splitattato ogni step --- .gitlab-ci.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f349ab4..7904e90e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -160,18 +160,36 @@ STAT:IIS01:deploy: script: - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Stats/MP.Stats.csproj -IIS02:deploy: +LAND:IIS02:deploy: stage: deploy tags: - win only: - master - needs: ["build"] + needs: ["LAND:build"] script: - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Land/MP.Land.csproj - dotnet publish -p:PublishProfile=W2019-IIS-DEVProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Land/MP.Land.csproj + +PROG:IIS02:deploy: + stage: deploy + tags: + - win + only: + - master + needs: ["PROG:build"] + script: - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Prog/MP.Prog.csproj - dotnet publish -p:PublishProfile=W2019-IIS-DEVProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Prog/MP.Prog.csproj + +STAT:IIS02:deploy: + stage: deploy + tags: + - win + only: + - master + needs: ["STAT:build"] + script: - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Stats/MP.Stats.csproj - dotnet publish -p:PublishProfile=W2019-IIS-DEVProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true MP.Stats/MP.Stats.csproj @@ -182,7 +200,7 @@ LAND:installer: only: - develop - master - needs: ["build"] + needs: ["LAND:build"] variables: APP_NAME: MP.Land NEXUS_PATH: MP-LAND @@ -202,7 +220,7 @@ PROG:installer: only: - develop - master - needs: ["build"] + needs: ["PROG:build"] variables: APP_NAME: MP.Prog NEXUS_PATH: MP-PROG @@ -222,7 +240,7 @@ STAT:installer: only: - develop - master - needs: ["build"] + needs: ["STAT:build"] variables: APP_NAME: MP.Stats NEXUS_PATH: MP-STATS @@ -236,7 +254,7 @@ STAT:installer: - *nexusUpload -release: +LAND:release: stage: release tags: - win @@ -246,7 +264,43 @@ release: - tags except: - branches - needs: ["build"] + needs: ["LAND:build"] + artifacts: + paths: + - publish/ + script: + - dotnet publish -c Release -o ./publish MP.Land/MP.Land.csproj + + +PROG:release: + stage: release + tags: + - win + only: + #- feature/Deploy_CI_CD + # - master + - tags + except: + - branches + needs: ["PROG:build"] + artifacts: + paths: + - publish/ + script: + - dotnet publish -c Release -o ./publish MP.Prog/MP.Prog.csproj + + +STAT:release: + stage: release + tags: + - win + only: + #- feature/Deploy_CI_CD + # - master + - tags + except: + - branches + needs: ["STAT:build"] artifacts: paths: - publish/