]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22448 prevent trying to run ci on missing cirrus files
authorSteve Marion <steve.marion@sonarsource.com>
Wed, 26 Jun 2024 08:12:42 +0000 (10:12 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 26 Jun 2024 20:03:32 +0000 (20:03 +0000)
.cirrus.star

index 0f6cef00a5e9a6304060b96cd8462e0a42c14535..be65e9be68ff80eb30fb16da1c9ba877eeda4853 100644 (file)
@@ -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: