correzione yaml x mON, altro modo x recuperare path multi-livello

This commit is contained in:
Samuele Locatelli
2025-03-14 19:09:47 +01:00
parent e95fc39300
commit 69dbf46a70
+15 -15
View File
@@ -200,7 +200,7 @@ MON:build:
tags:
- win
variables:
APP_NAME: MP-MON
APP_NAME: MP-MON/MP-MON
SOL_NAME: MP-MON
rules:
- if: $CI_COMMIT_BRANCH == 'develop'
@@ -211,7 +211,7 @@ MON:build:
- *nuget-fix
- dotnet restore "$env:SOL_NAME.sln"
script:
- dotnet build $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
SPEC:build:
stage: build
@@ -395,7 +395,7 @@ MON:IIS01:deploy:
tags:
- win
variables:
APP_NAME: MP-MON
APP_NAME: MP-MON/MP-MON
SOL_NAME: MP-MON
before_script:
- *nuget-fix
@@ -406,8 +406,8 @@ MON:IIS01:deploy:
when: always
needs: ["MON:build"]
script:
- dotnet build $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
SPEC:IIS01:deploy:
stage: deploy
@@ -569,7 +569,7 @@ MON:IIS03:deploy:
tags:
- win
variables:
APP_NAME: MP-MON
APP_NAME: MP-MON/MP-MON
SOL_NAME: MP-MON
before_script:
- *nuget-fix
@@ -578,9 +578,9 @@ MON:IIS03:deploy:
- if: $CI_COMMIT_BRANCH == 'master'
needs: ["MON:build"]
script:
- dotnet build $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS04.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS04.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
SPEC:IIS03:deploy:
stage: deploy
@@ -746,7 +746,7 @@ MON:installer:
tags:
- win
variables:
APP_NAME: MP-MON
APP_NAME: MP-MON/MP-MON
SOL_NAME: MP-MON
NEXUS_PATH: MP-MON
before_script:
@@ -757,8 +757,8 @@ MON:installer:
- if: $CI_COMMIT_BRANCH == 'develop'
needs: ["MON:build"]
script:
- dotnet build $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj -o:publish -p:verbosity=quiet
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish -p:verbosity=quiet
# qui il deploy su nexus...
- *hashBuild
- *nexusUpload
@@ -967,7 +967,7 @@ MON:release:
tags:
- win
variables:
APP_NAME: MP-MON
APP_NAME: MP-MON/MP-MON
SOL_NAME: MP-MON
NEXUS_PATH: MP-MON
before_script:
@@ -980,8 +980,8 @@ MON:release:
paths:
- publish/
script:
- dotnet build $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME/$env:APP_NAME.csproj -p:verbosity=quiet
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj -p:verbosity=quiet
SPEC:release:
stage: release