From 5e6cab7974d8711c4c30d2728f490119f0446b55 Mon Sep 17 00:00:00 2001 From: David Gilbert <david.gilbert@rwth-aachen.de> Date: Mon, 8 Jan 2024 15:04:03 +0100 Subject: [PATCH] Update plugins.gitlab-ci.yml to use rules instead of only --- plugins.gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/plugins.gitlab-ci.yml b/plugins.gitlab-ci.yml index 8286d91..b1524f0 100644 --- a/plugins.gitlab-ci.yml +++ b/plugins.gitlab-ci.yml @@ -46,11 +46,15 @@ stages: # - deploy Generate_Project: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Generate_Project_ Build_Windows: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Windows_ tags: - windows @@ -65,7 +69,9 @@ Build_Windows: artifacts: true Build_Linux: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Linux_ tags: - linux @@ -80,14 +86,18 @@ Build_Linux: artifacts: true #Deploy_Windows: -# only: ['web', 'schedules'] +# rules: +# - if: $CI_PIPELINE_SOURCE == "web" +# - if: $CI_PIPELINE_SOURCE == "schedule" # extends: .Deploy_VRDev_ # needs: # - job: "Build_Windows" # artifacts: true # #Deploy_CAVE: -# only: ['web', 'schedules'] +# rules: +# - if: $CI_PIPELINE_SOURCE == "web" +# - if: $CI_PIPELINE_SOURCE == "schedule" # extends: .Deploy_CAVE_ # needs: # - job: "Build_Linux" -- GitLab