diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2117b78..74ad4d2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,7 +52,7 @@ variables: { $version = "unstable" } - $File2Send = Get-ChildItem($env:APP_NAME + "\ReleaseClienti\MAPO_PROD\" + $env:NEW_REL + "\*") + $File2Send = Get-ChildItem($env:APP_NAME + "\Release\*") ForEach ($File in $File2Send) { $FileName = Split-Path $File -leaf mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/$FileName @@ -87,7 +87,7 @@ ADM:build: - win before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-ADM/MP-ADM.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -100,7 +100,7 @@ IO:build: - win before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -114,7 +114,7 @@ SITE:build: - win before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-SITE/MP-SITE.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -127,7 +127,7 @@ MON:build: - win before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - '& "$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' @@ -140,7 +140,7 @@ TAB:build: - win before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-TAB/MP-TAB.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -153,7 +153,7 @@ MAG:build: - win before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-MAG/MP-MAG.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -166,7 +166,7 @@ ADM:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-ADM/MP-ADM.csproj' @@ -180,7 +180,7 @@ IO:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-IO/MP-IO.csproj' @@ -194,7 +194,7 @@ SITE:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-SITE/MP-SITE.csproj' @@ -208,7 +208,7 @@ MON:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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' @@ -222,7 +222,7 @@ TAB:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-TAB/MP-TAB.csproj' @@ -236,7 +236,7 @@ MAG:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-MAG/MP-MAG.csproj' @@ -250,7 +250,7 @@ ADM:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-ADM/MP-ADM.csproj' @@ -264,7 +264,7 @@ IO:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-IO/MP-IO.csproj' @@ -278,7 +278,7 @@ SITE:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-SITE/MP-SITE.csproj' @@ -292,7 +292,7 @@ MON:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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' @@ -306,7 +306,7 @@ TAB:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-TAB/MP-TAB.csproj' @@ -320,7 +320,7 @@ MAG:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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-MAG/MP-MAG.csproj' @@ -340,10 +340,10 @@ ADM:install: ZIP_NAME: ADM before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-$env:ZIP_NAME/MP-$env:ZIP_NAME.csproj' + - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - *hashBuild - *nexusUpload needs: ["ADM:build"] @@ -362,10 +362,10 @@ IO:install: ZIP_NAME: IO before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-$env:ZIP_NAME/MP-$env:ZIP_NAME.csproj' + - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - *hashBuild - *nexusUpload needs: ["IO:build"] @@ -384,10 +384,10 @@ SITE:install: ZIP_NAME: SITE before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-$env:ZIP_NAME/MP-$env:ZIP_NAME.csproj' + - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - *hashBuild - *nexusUpload needs: ["SITE:build"] @@ -407,10 +407,10 @@ MON:install: ZIP_NAME: MON before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-$env:ZIP_NAME/MP-$env:ZIP_NAME.csproj' + - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - *hashBuild - *nexusUpload needs: ["MON:build"] @@ -429,10 +429,10 @@ TAB:install: ZIP_NAME: TAB before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-$env:ZIP_NAME/MP-$env:ZIP_NAME.csproj' + - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - *hashBuild - *nexusUpload needs: ["TAB:build"] @@ -451,10 +451,10 @@ MAG:install: ZIP_NAME: MAG before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln' + - '& "$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=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-$env:ZIP_NAME/MP-$env:ZIP_NAME.csproj' + - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:ZIP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' - *hashBuild - *nexusUpload needs: ["MAG:build"]