Posts

Showing posts with the label sonarqube

SonarScanner can run on linux but no result? (.NET Core 2)

SonarScanner can run on linux but no result? (.NET Core 2) I am trying to use Gitlab CI with SonarQube. It can run successfully under the situation: 1. Ubuntu VM ● docker(SonarQube) 1.13.1 ● sonar-gitlab-plugin 3.0.0 2. Windows 7 local ● gitlab-runner 10 ● SonarQube Scanner for MSBuild 4.3.1 ● .NET Core 2.0 However, it cannot produce results when SonarQube Scanner for MSBuild running on Ubuntu too. click for no-results picture Is it possible to do use the sonar scanner on Ubuntu? Like this: Ubuntu VM ● docker(SonarQube) 1.13.1 ● sonar-gitlab-plugin 3.0.0 ● gitlab-runner 10 ● SonarQube Scanner for MSBuild 4.3.1 ● .NET Core 2.0 I have searched that in this page, it indicated it can. But it's not working on me. https://docs.sonarqube.org/display/SCAN/Install+the+SonarScanner+for+MSBuild By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie...

Get pull request info on trigger with multiple VCS roots

Get pull request info on trigger with multiple VCS roots I have a TeamCity (version 2017.2.4) project with multiple configurations which are attached to various GitHub repositories. Now I would like to setup SonarQube GitHub plugin for some of these configurations. To do so, I've created a new build and attached a VCS Trigger . In order to make this trigger work, I also attached all VCS roots which I'd like this build to run on. Now after any changes in these VCS roots, the build gets triggered. VCS Trigger In order to use this plugin, after each trigger I need to extract repository name which was affected and fetch the pull request id. This is easy to do if I have a single VCS root with the following script: #!/usr/bin/env bash # Exit script on any command failure. set -e # Pass parameter to next TeamCity build step. param() { echo "##teamcity[setParameter name='$1' value='$2']" } # Full GitHub repository name. repository="myOrg/$(echo '%...