tentativo con 'only'

This commit is contained in:
zaccaria.majid
2023-11-16 16:00:24 +01:00
parent 6e81ae6065
commit d9fc308b08
+8 -6
View File
@@ -197,10 +197,12 @@ TAB3:build:
before_script:
- *nuget-fix
- dotnet restore "$env:SOL_NAME.sln"
only:
variables: [CI_COMMIT_BRANCH -match "$env:APP_NAME"]
script:
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
rules:
- if: 'CI_COMMIT_BRANCH -match "$env:APP_NAME"'
# rules:
# - if: 'CI_COMMIT_BRANCH -match "$env:APP_NAME"'
# ----- Start DEPLOY develop (IIS01) -----
@@ -349,15 +351,15 @@ TAB3:IIS01:deploy:
SOL_NAME: MP-TAB3
before_script:
- *nuget-fix
# only:
# - develop
only:
variables: [CI_COMMIT_BRANCH -match "$env:APP_NAME"]
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
- dotnet restore "$env:SOL_NAME.sln"
rules:
- if: 'CI_COMMIT_BRANCH -match "$env:APP_NAME"'
# rules:
# - if: 'CI_COMMIT_BRANCH -match "$env:APP_NAME"'
# when:
# branch:
# - ${{CF_BRANCH}} -match