--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/167da972-1a71-4858-9df4-b602b9204445%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, 21 Nov 2017 at 15:21 <kevin.ken...@gmail.com> wrote:I'm specifically confused on how all the following work when dealing with the new branches.My planned organization for the Branch Plugin is as follows:
- The "Main" branch is my "develop" branch
- The long-lived branches are any "release" branches (and "master" but the evolution of our workflow has gotten away from a central master branch)
- The short-lived branches are any "feature," "hotfix," "bugfix," or malformed-named branches
I'm trying to figure out how to get this working (what steps I need to do and when). Assume that I've got a clean SonarQube server. My questions are:
- How do I define the main branch? Do I just leave the "sonar.branch.name" information empty?
- Do I scan this branch first before anything else?
- Do I need to change the sonar.project.key for the branch builds
- or is defining sonar.branch.name sufficient?
- We are following the maven <groupId>:<artifactId> pattern with no additional information
- Our sonar.projectName is provided through the sonar-project.properties file since we use that for the module
Are there any tutorials or slide decks available that talk about the workflow for getting the Branch plugin?
"
It seems, that the results are stored under the main result page :-(.
Do you have any idea about the cause and the solution?
BR
Bertram
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/5Ru2OLptrfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/986b2b22-e726-4c32-b46e-28bf62e8b04e%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/53cdb7b5-43a5-4c51-acdf-0112a07b2d41%40googlegroups.com.
java.lang.UnsupportedOperationException: a measure can be set only once for a specific Component (key=DC-ILR-1718-ValidationService:BRANCH:refs/heads/dev)
On 22 February 2018 at 05:39:07, Hari Prasad (mlhpr....@gmail.com) wrote:
Hi,The sonar.branch.name doesn't seem to work on project created with first scan without sonar.branch.name="".Getting the following error when using sonar.branch.namebuild.gradle sonarqube -Dsonar.branch.name=master
Gradle failure report
[19:39:32]FAILURE: Build failed with an exception.
[19:39:32]
[19:39:32]* What went wrong:
[19:39:32]Execution failed for task ':sonarqube'.
[19:39:32]> Could not find branches. A regular analysis is required before creating branches.
Also sonar.branch.target always seems to default to master.What the options if we have to mention a different default branch and use sonar.branch.target reliably. Am I missing something?Regards,Hari
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/5Ru2OLptrfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/59ebeb87-3746-4892-9a17-92c3a226bbbd%40googlegroups.com.
C:\Jenkins\sitecore\develop>"C:\tools\sonarqube\sonar-scanner-msbuild-4.1.1.1164-net46\bin\SonarScanner.MSBuild.exe" begin /d:sonar.login=******** /k:NEON /n:Website /d:sonar.host.url=http://codeanalysis.remoteiv.dk /d:sonar.cs.nunit.reportsPaths=C:\Jenkins\sitecore\develop\NUnitResult.xml /d:sonar.cs.opencover.reportsPaths=C:\Jenkins\sitecore\develop\OpenCoverResult.xml
C:\Jenkins\sitecore\feature-NEON-10-Setting-Up-Toll-Gate@2>"C:\tools\sonarqube\sonar-scanner-msbuild-4.1.1.1164-net46\bin\SonarScanner.MSBuild.exe" begin /d:sonar.login=******** /k:NEON /n:Website /d:sonar.branch.name=feature-NEON-10-Setting-Up-Toll-Gate /d:sonar.host.url=http://codeanalysis.remoteiv.dk /d:sonar.cs.nunit.reportsPaths=C:\Jenkins\sitecore\feature-NEON-10-Setting-Up-Toll-Gate@2\NUnitResult.xml /d:sonar.cs.opencover.reportsPaths=C:\Jenkins\sitecore\feature-NEON-10-Setting-Up-Toll-Gate@2\OpenCoverResult.xml
{"task":{"id":"AWL3Sf5q5_IkahY6f6q6","type":"REPORT","componentId":"AWL3Mrk25_IkahY6f6qw","componentKey":"NEON","componentName":"Website","componentQualifier":"TRK","status":"FAILED","submittedAt":"2018-04-24T12:54:04+0200","submitterLogin":"jenkins","startedAt":"2018-04-24T12:54:05+0200","executedAt":"2018-04-24T12:54:15+0200","executionTimeMs":10155,"logs":false,"errorMessage":"a measure can be set only once for a specific Component (key=NEON:BRANCH:feature-NEON-10-Setting-Up-Toll-Gate), Metric (key=test_execution_time). Use update method (Visit failed for Component {key=NEON:BRANCH:feature-NEON-10-Setting-Up-Toll-Gate,type=PROJECT} )","hasScannerContext":true,"organization":"default-organization","branch":"feature-NEON-10-Setting-Up-Toll-Gate","branchType":"SHORT"}}
I can see that is appends the branch name to the key. But I guess it should do that :-(
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/5Ru2OLptrfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/3ca6469c-eeee-4795-b3e6-4bdd5e1195ff%40googlegroups.com.
Naveen,
I found that I had to scan my long term branch (the “master”) without branch scanning enabled. I subsequently turned it on and it has been running fine since then.
I put a flag in my Jenkins pipeline to read an environment variable to turn the branch scanning on/off.
-Kevin
--
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/3ca6469c-eeee-4795-b3e6-4bdd5e1195ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/5Ru2OLptrfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAEi9rUL-zJ38U4VHG1oFeh%3D08rfjKM8g%2BAKap5mL7rNvw1CrFQ%40mail.gmail.com.