Jenkins configuration: can't see "MSBuild SonarQube Runner" section - jenkins

I can see this part in my local installed Jenkins server, but can't find it in my company's Jenkins servers. What's missing to make it show? The SonarQube Runner and Sonar sections are there.

The Compatibility section tells only supported by C# plugin 4.4 onwards:
http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner+for+MSBuild.
So the solution is upgrade the C# plugin in SonarQube.

Related

sonarqube 8.9.2 with tfs 2015 build integration - is it posible?

I'm using sonarqube 8.9.2 and TFS2015 update 4.
in 8.9.2 there is no c# plugin as it's built-in.
when trying to run the sonarqube step of the build I get an error saying the SonarQube.MSBuild.Runner.Implementation.zip is missing.
##[error]Could not find a file on the SonarQube server. Url: http://XXXXXXXXXX/static/csharp/SonarQube.MSBuild.Runner.Implementation.zip
2021-09-02T14:34:22.7202456Z ##[error]Failed to update the SonarQube MSBuild Runner binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted.
2021-09-02T14:34:22.7202456Z ##[error]Pre-processing failed. Exit code: 1
2021-09-02T14:34:22.7360027Z ##[error]Unexpected exit code received from batch file: 1
the only thing I can find in the configuration is the Azure DevOps configuration in the ALM section but I'm using a local TFS 2015.
I've seen this post and the relevant answer but in 8.9 there is no C# plugin - Not able to integrate TFS 2015 with SonarQube
is it possible to integrate?
p.s,
I tried working with an older version of sonarqube (7.9.X) only to find there are issues with compatibility.
I installed v9 only to find that there is a bug in the latest releases and it will not start.
getting sick of this and starting to think I need to build a script that will run it manually.
thanks for your help,
Shay

How to Integrate SonarQube with QuickBuild?

We are currently using GitLab and QuickBuild for our Android Projects.
I have to integrate Sonarqube to have a pre check before every build.
I'm not able to get much information for quickbuild as most of the documentation is for Jenkins.
I can see that we can create steps in quickbuild and I would have to add one more step for sonar check and execute the sonar command.
But still I'm not very sure what is the best practice?
Where should I run the Sonar Server?
Where to add the sonar configuration files?
Any good documentation available?
Should I run the Sonar check on GitLab or QuickBuild? (Our build server is QuickBuild so it looks the better option)
Ideally you should run sonar server on separate machine or you can use the same server on which quickbuild is running (depending upon java versions)
You can place sonar configuration file either in project directory or you can store it at any central location.
No official documentation for sonar and quickbuild integration.
Run sonar check on Buildserver.
We chose to do the SonarQube check inside the Maven build (that runs on Quickbuild). A Maven plugin is available. If you use Gradle, this might do as well.

TFS 2017 + Sonarqube

We have a on prem installation of TFS (TFS 2017) and I am attempting to integrate SonarQube analysis into our build steps. I have installed the SonarQube extension on the TFS server and added a service endpoint to point to a server where I have SonarQube Server installed and configured.
When I attempting to trigger a build, I am getting an error "No agents could be found with the following capabilities: msbuild, java, visualstudio". Does my build server need JRE to be installed to get the SonarQube build steps to work? SonarQube website says this:
**Installation
Make sure the .NET Framework v4.5.2+ is installed
Make sure the Java Runtime Environment 8 is installed
Install the extension from the marketplace**
Both the error message and the documentation told you the same thing: You need Java installed.
I will be the third source of confirmation: You need Java installed.
First, the official document is very clear here: Make sure the Java Runtime Environment 8 is installed
Besides, according to your prompting error message:
No agents could be found with the following capabilities: msbuild,
java, visualstudio
You are also lacking msbuild, visualstudio. Not only need Java installed, but also need Visual Studio installed on your build agent, then restart the build agent. Restarting the build agent will capture the added Capabilities. If this not work, reconfigure the build agent should do the trick.
The build agent will not detect the environment changes after you installed it. It will only detect during the installation. If you are using vNext build agent, also try to manually add some capabilities in Settings- Agent Queues- Agent Pool - Agent- Capabilities. After this trigger the build again.
Note: if you are running on TFS earlier than 2017 Update 2, you will need to download and manually install the latest 3.x version of the VSIX to install SonarQube Extension.

Jenkins - MSBuild section is missing in system configuration

From MSBuild Plugin Page:
To use this plugin, specify the location directory of MSBuild.exe on
Jenkin's configuration page.
Jenkins 2.7.2 LTS is installed on Windows as a service with recommended plugins on startup.
Then I installed MSBuild plugin v1.26
Restarted Jenkins, but still I cannot see any MSBuild section in 'Configure System' page.
Can anyone help?
I've seen some of my plugin's settings going into "Global Tool Configuration". See the image:

Jenkins Automation help required

I have been assigned a task to do build automation using jenkins which should perform checkout, compile & build automatically.
Existing set up - Currently we have PVCS installed in one of our AIX server where build process(checkout,compile,build) is automated using ant script.
I have installed jenkins in my windows server.
How do i get the code into my windows server from PVCS which resides in AIX server to perform build through jenkins.
Thanks in advance.
As I posted on CodeRanch where you posted the same question, you need to install the PVCS plugin for Jenkins.

Resources