From 78f39bc77f410ecefb4e1a6ecd431262a339b273 Mon Sep 17 00:00:00 2001 From: Steve Marion Date: Wed, 26 Jun 2024 10:12:42 +0200 Subject: SONAR-22448 prevent trying to run ci on missing cirrus files --- .cirrus.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.cirrus.star') diff --git a/.cirrus.star b/.cirrus.star index 0f6cef00a5e..be65e9be68f 100644 --- a/.cirrus.star +++ b/.cirrus.star @@ -3,7 +3,7 @@ load("cirrus", "env", "fs", "yaml") def main(ctx): - if env.get("CIRRUS_REPO_FULL_NAME") == 'SonarSource/sonar-enterprise': + if env.get("CIRRUS_REPO_FULL_NAME") == 'SonarSource/sonar-enterprise' and fs.exists("private/.cirrus.yml"): features = yaml.dumps(load_features(ctx, only_if=dict())) doc = fs.read("private/.cirrus.yml") else: -- cgit v1.2.3