This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
The following commit(s) were added to refs/heads/master by this push:
new e535217 explicitly set sonar.login property from env
e535217 is described below
commit e5352177cec87193bc618bdfd2fb585c9dbed498
Author: juanpablo <[email protected]>
AuthorDate: Mon Aug 19 23:37:05 2019 +0200
explicitly set sonar.login property from env
---
Jenkinsfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index c0ee4bb..82c0424 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -37,7 +37,7 @@ try {
git url: buildRepo, poll: true
withMaven(jdk: 'JDK 1.8 (latest)', maven: 'Maven 3 (latest)' )
{
withCredentials( [ string( credentialsId:
'sonarcloud-jspwiki', variable: 'SONAR_TOKEN' ) ] ) {
- def sonarOptions = '-Dsonar.projectKey=jspwiki-builder
-Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io' //
sonar.login read from SONAR_TOKEN env var
+ def sonarOptions = "-Dsonar.projectKey=jspwiki-builder
-Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io
-Dsonar.login=$SONAR_TOKEN"
echo 'Will use SonarQube instance at
https://sonarcloud.io'
sh "mvn clean
org.jacoco:jacoco-maven-plugin:prepare-agent install
-Pattach-additional-artifacts sonar:sonar -up $sonarOptions"
}