You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/02/10 19:19:52 UTC

[incubator-plc4x] 01/02: Changed the build to only do the sonar analysis on develop (Otherwise the commits on branches overwrite the develop results)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/junit4
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit c4511064e9da17d2f03c321842255ca365ae960c
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Sat Feb 10 20:19:05 2018 +0100

    Changed the build to only do the sonar analysis on develop (Otherwise the commits on branches overwrite the develop results)
---
 Jenkinsfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2ecf0fc..986a2a7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -34,7 +34,7 @@ node('ubuntu') {
     def mavenGoal = "install"
     def mavenLocalRepo = ""
     if(env.BRANCH_NAME == 'develop') {
-        mavenGoal = "deploy"
+        mavenGoal = "deploy sonar:sonar"
     } else {
         mavenLocalRepo = "-Dmaven.repo.local=.repository"
     }
@@ -52,7 +52,7 @@ node('ubuntu') {
 
         stage ('Build') {
             echo 'Building'
-            sh "${mvnHome}/bin/mvn -Pjenkins-build ${mavenLocalRepo} clean ${mavenGoal} sonar:sonar site:site"
+            sh "${mvnHome}/bin/mvn -Pjenkins-build ${mavenLocalRepo} clean ${mavenGoal} site:site"
         }
 
         stage ('Stage Site') {

-- 
To stop receiving notification emails like this one, please contact
cdutz@apache.org.