From 9e8a94c94e5d69c4973c03f071d29bcf2d57c7ac Mon Sep 17 00:00:00 2001 From: Samuele Emilio Locatelli Date: Fri, 17 Nov 2023 08:08:41 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 638e8768..b2eaea8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,13 +91,16 @@ LAND:build: APP_NAME: MP.Land SOL_NAME: MP-LAND rules: - - if: $CI_COMMIT_BRANCH == "develop" - - if: $CI_COMMIT_BRANCH == "master" - - if: $CI_COMMIT_BRANCH =~ "/^feature/LAND.+" + # - if: $CI_COMMIT_BRANCH =~ /^feature/ + # when: never + - if: $CI_COMMIT_BRANCH == 'develop' + - if: $CI_COMMIT_BRANCH == 'master' + # - if: $CI_COMMIT_BRANCH =~ /^feature/LAND.+/ before_script: - *nuget-fix - dotnet restore "$env:SOL_NAME.sln" script: + - echo $CI_COMMIT_BRANCH - dotnet build $env:APP_NAME/$env:APP_NAME.csproj PROG:build: @@ -108,9 +111,11 @@ PROG:build: APP_NAME: MP.Prog SOL_NAME: MP-PROG rules: + - if: $CI_COMMIT_BRANCH =~ "feature/" + when: never - if: $CI_COMMIT_BRANCH == "develop" - if: $CI_COMMIT_BRANCH == "master" - # - if: $CI_COMMIT_BRANCH =~ /^feature/PROG* + - if: $CI_COMMIT_BRANCH =~ "feature/PROG.+" before_script: - *nuget-fix - dotnet restore "$env:SOL_NAME.sln"