From 288397a711bc441818faa75ce79b991884b24531 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 11 Apr 2022 10:48:30 +0200 Subject: [PATCH] correzione indentazione --- .gitlab-ci.yml | 84 +++++++++++++++++++++++++------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 60f3dcb..e513413 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,57 +83,57 @@ stages: - release Zcode:build: - stage: build - tags: + stage: build + tags: - win - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" $env:APP_NAME/$env:APP_NAME.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' - + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' + - *version-fix + script: + - '& "$env:MSBUILD_PATH" $env:APP_NAME/$env:APP_NAME.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' + Zcode:IIS01:deploy: - stage: deploy - tags: + stage: deploy + tags: - win - rules: - - if: '$CI_COMMIT_BRANCH == "develop"' - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - needs: ["Zcode:build"] + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' + - *version-fix + script: + - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' + needs: ["Zcode:build"] Zcode:IIS02:deploy: - stage: deploy - tags: + stage: deploy + tags: - win - rules: - - if: '$CI_COMMIT_BRANCH == "develop"' - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' - - *version-fix - script: + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' + - *version-fix + script: - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - needs: ["Zcode:build"] + needs: ["Zcode:build"] Zcode:IIS03:deploy: - stage: deploy - tags: - - win - rules: - - if: '$CI_COMMIT_BRANCH == "develop"' - before_script: - - *nuget-fix - - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' - - *version-fix - script: - - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - needs: ["Zcode:build"] + stage: deploy + tags: + - win + rules: + - if: '$CI_COMMIT_BRANCH == "develop"' + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore $env:APP_NAME.sln -Verbosity quiet' + - *version-fix + script: + - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS03.pubxml /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' + needs: ["Zcode:build"] # Zcode:OVH:release: # stage: release