From 4a414d1db665de56dc94d4b2feb090a66ca8f706 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Sat, 2 Apr 2022 22:09:48 +0200 Subject: [PATCH] Filter GitlabCI AAR jobs Those jobs need extra storage that shared runners doesn't provide, run only for project that export a variable that inform about extended storage runners avalibaility, avoid false pipeline failures on forks --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 76fb3e4b7..e3b44f67c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,6 @@ android-AAR-minapi16: + rules: + - if: $PROJECT_HAVE_STORAGE50_RUNNERS == "true" image: registry.gitlab.com/retroshare/retroshare:android_aar_base_16 script: - > @@ -7,8 +9,12 @@ android-AAR-minapi16: -PANDROID_MIN_API_LEVEL=16 -PLIBRETROSHARE_SOURCE_VERSION="$CI_COMMIT_SHORT_SHA" -PNATIVE_TOOLCHAINS_DIR="/libretroshare-native-toolchains/" + tags: + - storage50 android-AAR-minapi21: + rules: + - if: $PROJECT_HAVE_STORAGE50_RUNNERS == "true" image: registry.gitlab.com/retroshare/retroshare:android_aar_base_21 script: - > @@ -21,6 +27,8 @@ android-AAR-minapi21: - storage50 android-AAR-minapi24: + rules: + - if: $PROJECT_HAVE_STORAGE50_RUNNERS == "true" image: registry.gitlab.com/retroshare/retroshare:android_aar_base_24 script: - >