prova compilazione condizionale con rule
This commit is contained in:
+9
-6
@@ -197,10 +197,10 @@ TAB3:build:
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- dotnet restore "$env:SOL_NAME.sln"
|
||||
rules:
|
||||
if: ${{CF_BRANCH}} -match "$env:APP_NAME"
|
||||
script:
|
||||
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
|
||||
when:
|
||||
branch: 'match(${{CF_BRANCH}}, "..$env:APP_NAME.", true)'
|
||||
|
||||
|
||||
# ----- Start DEPLOY develop (IIS01) -----
|
||||
@@ -350,14 +350,17 @@ TAB3:IIS01:deploy:
|
||||
before_script:
|
||||
- *nuget-fix
|
||||
- dotnet restore "$env:SOL_NAME.sln"
|
||||
only:
|
||||
- develop
|
||||
rules:
|
||||
if: ${{CF_BRANCH}} -match "$env:APP_NAME"
|
||||
# only:
|
||||
# - develop
|
||||
needs: ["TAB3:build"]
|
||||
script:
|
||||
- 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_PASSWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
|
||||
when:
|
||||
branch: 'match(${{CF_BRANCH}}, "..$env:APP_NAME.", true)'
|
||||
# when:
|
||||
# branch:
|
||||
# - ${{CF_BRANCH}} -match
|
||||
|
||||
# ----- Start DEPLOY master (IIS02/IIS04) -----
|
||||
LAND:IIS02:deploy:
|
||||
|
||||
Reference in New Issue
Block a user