This is an automated email from the ASF dual-hosted git repository. cdutz pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/incubator-edgent.git
The following commit(s) were added to refs/heads/develop by this push: new 8692310 - Updated the sonar plugin version - Streamlined the pom-settings even more - Fixed a bug in the Pipeline 8692310 is described below commit 86923105d576f17e0b8e0f8a6b0cbbd3f077b6be Author: Christofer Dutz <christofer.d...@c-ware.de> AuthorDate: Wed Feb 6 14:42:30 2019 +0100 - Updated the sonar plugin version - Streamlined the pom-settings even more - Fixed a bug in the Pipeline --- Jenkinsfile | 4 ++-- pom.xml | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2edcad1..0a09fd0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -103,7 +103,7 @@ pipeline { echo 'Building' // We'll deploy to a relative directory so we can save // that and deploy in a later step on a different node - sh 'mvn ${MVN_TEST_FAIL_IGNORE} -Pplatform-android,platform-java7,distribution,toolchain -Djava8.home=${JAVA_HOME} -Dedgent.build.ci=true -DaltDeploymentRepository=snapshot-repo::default::file:./local-snapshots-dir clean deploy' + sh 'mvn ${MVN_TEST_FAIL_IGNORE} -P${JENKINS_PROFILE},platform-android,platform-java7,distribution,toolchain -Djava8.home=${JAVA_HOME} -Dedgent.build.ci=true -DaltDeploymentRepository=snapshot-repo::default::file:./local-snapshots-dir clean deploy' } post { always { @@ -142,7 +142,7 @@ pipeline { } steps { echo 'Building Site' - sh "${mvnHome}/bin/mvn ${mavenLocalRepo} site site:stage" + sh 'mvn -P${JENKINS_PROFILE} site' } } diff --git a/pom.xml b/pom.xml index 7090271..c73c5f2 100644 --- a/pom.xml +++ b/pom.xml @@ -58,10 +58,7 @@ <!-- URL of the ASF SonarQube server --> <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url> <!-- Exclude all generated code --> - <sonar.exclusions>file:**/generated-sources/**</sonar.exclusions> - <!-- Tell sonar where the coverage reports are located --> - <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco-ut.exec</sonar.jacoco.reportPath> - <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> + <sonar.exclusions>**/generated-sources</sonar.exclusions> <remote-resources-maven-plugin.remote-resources.dir>src/main/remote-resources</remote-resources-maven-plugin.remote-resources.dir> </properties> @@ -200,7 +197,7 @@ <plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> - <version>3.3.0.603</version> + <version>3.6.0.1398</version> </plugin> <!-- @@ -715,11 +712,11 @@ </plugin> <!-- Generates a report with the SonarQube analysis reports --> - <plugin> + <!--plugin> <groupId>org.codehaus.sonar-plugins</groupId> <artifactId>maven-report</artifactId> <version>0.1</version> - </plugin> + </plugin--> <!-- Generate the JavaDoc API documentation --> <plugin>