Skip to content

Commit

Permalink
Change solr & sonar plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
RVanhuysseXenit committed Sep 24, 2024
1 parent 1340300 commit b9cb4de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'eu.xenit.docker-alfresco' version '5.5.0' apply(false)
id "org.sonarqube" version "3.3"
id "org.kordamp.gradle.jacoco" version "0.54.0"
id "be.vbgn.ci-detect" version "0.5.0"
}

description = "Alfresco Health Processor: A background processor capable of performing various operations on the nodes in your Alfresco repository, in a batched and controlled manner"
Expand All @@ -13,6 +14,14 @@ sonarqube {
property "sonar.organization", "xenit-eu"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.exclusions", "**/eu/xenit/alfresco/healthprocessor/example/*"
if (ci.isPullRequest()) {
property "sonar.pullrequest.key", ci.pullRequest
property "sonar.pullrequest.branch", ci.branch
property "sonar.pullrequest.base", ci.pullRequestTargetBranch
} else {
// GIT_BRANCH allows to push from local development directly to SonarCloud
property "sonar.branch.name", ci.reference != null ? ci.reference : "$System.env.GIT_BRANCH"
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
- GLOBAL_eu.xenit.alfresco.healthprocessor.plugin.content-validation.enabled=true
- GLOBAL_eu.xenit.alfresco.healthprocessor.plugin.content-validation.properties=cm:content
- GLOBAL_eu.xenit.alfresco.healthprocessor.plugin.solr-index.enabled=true
- GLOBAL_eu.xenit.alfresco.healthprocessor.plugin.solr-index.use-ssl=true
- GLOBAL_eu.xenit.alfresco.healthprocessor.plugin.solr-index.check-transaction=true
- GLOBAL_eu.xenit.alfresco.healthprocessor.fixer.solr-missing-node.enabled=true
- GLOBAL_eu.xenit.alfresco.healthprocessor.fixer.solr-duplicate-node.enabled=true
Expand Down

0 comments on commit b9cb4de

Please sign in to comment.