From ac801c6de44a72a059969566ad1a09ae7f4795e1 Mon Sep 17 00:00:00 2001 From: David Gilbert <david.gilbert@rwth-aachen.de> Date: Mon, 8 Jan 2024 15:03:07 +0100 Subject: [PATCH] Update to rules instead of only --- project.gitlab-ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/project.gitlab-ci.yml b/project.gitlab-ci.yml index ac8447d..f7cde01 100644 --- a/project.gitlab-ci.yml +++ b/project.gitlab-ci.yml @@ -33,7 +33,10 @@ stages: - deploy Build_Windows: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" + extends: .Build_Windows_ tags: - windows @@ -43,7 +46,9 @@ Build_Windows: # CLIENT_CONFIG: "Shipping" Build_Linux: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Linux_ tags: - linux @@ -53,14 +58,18 @@ Build_Linux: # CLIENT_CONFIG: "Shipping" 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