aggiunta step deploy su nexus

This commit is contained in:
Samuele Locatelli
2021-12-01 09:26:15 +01:00
parent 6324dcf1f3
commit e0e81ef981
+84 -64
View File
@@ -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"]
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"]