aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.star
diff options
context:
space:
mode:
Diffstat (limited to '.cirrus.star')
-rw-r--r--.cirrus.star10
1 files changed, 9 insertions, 1 deletions
diff --git a/.cirrus.star b/.cirrus.star
index 28b17b70fc3..501a4bfc50c 100644
--- a/.cirrus.star
+++ b/.cirrus.star
@@ -1,4 +1,12 @@
load("github.com/SonarSource/cirrus-modules@v2", "load_features")
+load("cirrus", "env", "fs", "yaml")
+
def main(ctx):
- return load_features(ctx)
+ if env.get("CIRRUS_REPO_FULL_NAME") == 'SonarSource/sonar-enterprise':
+ features = yaml.dumps(load_features(ctx, only_if=dict()))
+ doc = fs.read("private/.cirrus.yml")
+ return features + doc
+
+ # On SonarSource/sonarqube repo, we don't trigger any Cirrus build
+ return []