File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if [[ "x$OPENGROK_REPO_SLUG" == "xoracle/opengrok" && "x$OPENGROK_BRANCH" == "xm
23
23
#
24
24
if [[ -z " ${OPENGROK_PULL_REQUEST} " ]]; then
25
25
echo " Enabling Sonar"
26
- extra_args=" $extra_args -Dsonar.login=$OPENGROK_SONAR_TOKEN sonar:sonar"
26
+ extra_args=" $extra_args -P sonar - Dsonar.login=$OPENGROK_SONAR_TOKEN sonar:sonar"
27
27
fi
28
28
fi
29
29
Original file line number Diff line number Diff line change @@ -381,6 +381,25 @@ Portions Copyright (c) 2018, 2020, Chris Fraire <
[email protected] >.
381
381
</plugins >
382
382
</build >
383
383
</profile >
384
+ <profile >
385
+ <id >sonar</id >
386
+ <properties >
387
+ <sonar .host.url>https://sonarcloud.io</sonar .host.url>
388
+ <sonar .organization>opengrok</sonar .organization>
389
+ </properties >
390
+ <build >
391
+ <plugins >
392
+ <plugin >
393
+ <groupId >org.jacoco</groupId >
394
+ <artifactId >jacoco-maven-plugin</artifactId >
395
+ </plugin >
396
+ <plugin >
397
+ <groupId >org.sonarsource.scanner.maven</groupId >
398
+ <artifactId >sonar-maven-plugin</artifactId >
399
+ </plugin >
400
+ </plugins >
401
+ </build >
402
+ </profile >
384
403
</profiles >
385
404
386
405
<reporting >
You can’t perform that action at this time.
0 commit comments