diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efd191a1..9f45f84e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,34 +96,7 @@ variables: stages: - build # - deploy - -IOB:build: - stage: build - tags: - - win - variables: - APP_NAME: IOB-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="x86" /p:OutputPath=bin/ /verbosity:minimal /m' - -IOB-NEXT:build: - stage: build - tags: - - win - variables: - APP_NAME: IOB-WIN-NEXT - 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="x86" /p:OutputPath=bin/ /verbosity:minimal /m' - - + IOB-MAN:build: stage: build tags: @@ -136,41 +109,88 @@ IOB-MAN:build: - *version-fix script: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m' + +IOB-WIN:build: + stage: build + tags: + - win + variables: + APP_NAME: IOB-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="x86" /p:OutputPath=bin/ /verbosity:minimal /m' -# IOB:deploy: -# stage: deploy -# tags: -# - win -# variables: -# APP_NAME: IOB-WIN -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet' -# - *version-fix -# - *cleanup-zip -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m' -# - *zipper -# - *hashBuild -# - *nexusUpload -# needs: ["IOB:build"] +IOB-WIN-NEXT:build: + stage: build + tags: + - win + variables: + APP_NAME: IOB-WIN-NEXT + 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="x86" /p:OutputPath=bin/ /verbosity:minimal /m' + +IOB-MAN:deploy: + stage: deploy + tags: + - win + variables: + APP_NAME: IOB-MAN + NEXUS_PATH: MAPO/IOB-MAN + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet' + - *version-fix + - *cleanup-zip + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m' + - *zipper + - *hashBuild + - *nexusUpload + needs: ["IOB-MAN:build"] -# IOB-NEXT:deploy: -# stage: deploy -# tags: -# - win -# variables: -# APP_NAME: IOB-WIN-NEXT -# before_script: -# - *nuget-fix -# - echo "Chiamata comando nuget-restore" -# - echo "'& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet'" -# - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet' -# - *version-fix -# - *cleanup-zip -# script: -# - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m' -# - *zipper -# - *hashBuild -# - *nexusUpload -# needs: ["IOB-NEXT:build"] \ No newline at end of file +IOB-WIN:deploy: + stage: deploy + tags: + - win + variables: + APP_NAME: IOB-WIN + NEXUS_PATH: MAPO/IOB-WIN + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet' + - *version-fix + - *cleanup-zip + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m' + - *zipper + - *hashBuild + - *nexusUpload + needs: ["IOB-WIN:build"] + +IOB-WIN-NEXT:deploy: + stage: deploy + tags: + - win + variables: + APP_NAME: IOB-WIN-NEXT + NEXUS_PATH: MAPO/IOB-WIN-NEXT + before_script: + - *nuget-fix + - echo "Chiamata comando nuget-restore" + - echo "'& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet'" + - '& "$env:NUGET_PATH" restore "$env:APP_NAME.sln"-verbosity quiet' + - *version-fix + - *cleanup-zip + script: + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="x86" /p:OutputPath=bin/ /verbosity:minimal /m' + - *zipper + - *hashBuild + - *nexusUpload + needs: ["IOB-WIN-NEXT:build"] \ No newline at end of file