diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 102ee570..013a834d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,7 +90,7 @@ stages: - installer -AIS:build: +A:build: stage: build variables: CURR_PRJ: "MP-ADM" @@ -102,9 +102,34 @@ AIS:build: - *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' - - '& "$env:MSBUILD_PATH" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' - - '& "$env:MSBUILD_PATH" MP-SITE/MP-SITE.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' + +I:build: + stage: build + variables: + CURR_PRJ: "MP-IO" + tags: + - win + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - *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' + + +S:build: + stage: build + variables: + CURR_PRJ: "MP-SITE" + tags: + - win + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore MAPO.sln' # path alla solution corrente + - *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' @@ -252,7 +277,7 @@ LMMT:deploy: needs: ["LMMT:build"] -AIS:install: +A:install: stage: installer tags: - win @@ -281,8 +306,70 @@ AIS:install: # - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/SITE.zip /p:DeployIisAppPath="Default Web Site/MP/SITE" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-SITE/MP-SITE.csproj' # - *hashBuild # - *nexusUpload - needs: ["AIS:build"] + needs: ["A:build"] + +I:install: + stage: installer + tags: + - win + rules: + - if: '$CI_COMMIT_BRANCH == "Test-ci-cd"' + when: manual + variables: + APP_NAME: MP-IO + ZIP_NAME: IO +# only: +# - tags # the build process will only be started by git tag commits + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore MAPO.sln' + - *version-fix + script: + # ADM ZIP package + - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/ADM.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-ADM/MP-ADM.csproj' + - *hashBuild + - *nexusUpload + # # IO ZIP package + # - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/IO.zip /p:DeployIisAppPath="Default Web Site/MP/IO" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-IO/MP-IO.csproj' + # - *hashBuild + # - *nexusUpload + # # SITE ZIP package + # - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/SITE.zip /p:DeployIisAppPath="Default Web Site/MP/SITE" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-SITE/MP-SITE.csproj' + # - *hashBuild + # - *nexusUpload + needs: ["I:build"] +S:install: + stage: installer + tags: + - win + rules: + - if: '$CI_COMMIT_BRANCH == "Test-ci-cd"' + when: manual + variables: + APP_NAME: MP-SITE + ZIP_NAME: SITE +# only: +# - tags # the build process will only be started by git tag commits + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore MAPO.sln' + - *version-fix + script: + # ADM ZIP package + - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/ADM.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-ADM/MP-ADM.csproj' + - *hashBuild + - *nexusUpload + # # IO ZIP package + # - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/IO.zip /p:DeployIisAppPath="Default Web Site/MP/IO" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-IO/MP-IO.csproj' + # - *hashBuild + # - *nexusUpload + # # SITE ZIP package + # - '& "$env:MSBUILD_PATH" /p:m=8 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=SPS /p:PublishProfile=SPS.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=ReleaseClienti/MAPO_PROD/$env:NEW_REL/SITE.zip /p:DeployIisAppPath="Default Web Site/MP/SITE" /p:PackageAsSingleFile=True /p:OutputPath=bin/ MP-SITE/MP-SITE.csproj' + # - *hashBuild + # - *nexusUpload + needs: ["S:build"] + # AIS:install: # stage: installer # tags: