From 01fc545fa3a006c6a7dc7d53842e7c2b23af6bfb Mon Sep 17 00:00:00 2001 From: David Gilbert <david.gilbert@rwth-aachen.de> Date: Mon, 8 Jan 2024 15:08:45 +0100 Subject: [PATCH] Update .gitlab-ci.yml file: only to rules --- .gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5984c2b..dbb99d58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,14 +46,18 @@ stages: - deploy Generate_Project: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Generate_Project_ variables: RUN_SETUP: "false" GEN_TEMPLATE_BRANCH: "4.27" Build_Windows: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Windows_ tags: - windows @@ -68,7 +72,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 @@ -84,14 +90,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