From 403a1a2842ea8d8893a08b59dd92a1a853619df9 Mon Sep 17 00:00:00 2001 From: David Gilbert <david.gilbert@rwth-aachen.de> Date: Mon, 8 Jan 2024 15:07:46 +0100 Subject: [PATCH] refactor(ci): Changes 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 89f35dbf..359ab2a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,7 +65,9 @@ clang-format: - if [ ! -z "$linter_errors" ]; then echo "Detected formatting issues; please fix"; exit 1; else echo "Formatting is correct"; exit 0; fi Generate_Project: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Generate_Project_ variables: RUN_SETUP: "false" @@ -75,7 +77,9 @@ Generate_Project: Build_Windows: - only: ['web', 'schedules'] + rules: + - if: $CI_PIPELINE_SOURCE == "web" + - if: $CI_PIPELINE_SOURCE == "schedule" extends: .Build_Windows_ tags: - windows @@ -90,7 +94,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 @@ -106,14 +112,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_vrdemo_ needs: - job: "Build_Linux" -- GitLab