Welcome to the Linux Foundation Forum!

Issue with SonarQube integration in Jenkins

Posts: 1
edited July 2023 in LFS261 Class Forum

Hello,

I'm currently attempting to integrate code scanning from my repository using SonarScanner in Jenkins. Here's the current setup:

Within Jenkins, I have the "SonarQube Scanner for Jenkins" plugin installed, and the SonarQube server and its credentials properly configured in the System Configuration section. I've also marked the option to install the SonarScanner through Jenkins.

Regarding the Jenkins project, it is set up as a "Freestyle project." In the project's configuration, the "Source Code Management" section is set to "git" pointing to my repository (https://github.com/StefanVlad27/prueba_svlad.git). The rest of the configuration is set to default, except for the "Build steps" section, where there is an action for "Execute SonarQube scanner" with only the name specified.

Additionally, it's worth mentioning that my Git repository contains a sonar-project.properties file, which SonarScanner uses to retrieve the configuration.

On the surface, this configuration appears to be correct, and I've followed the official guides. However, when I run Jenkins, I encounter the following output:

If you require any additional information, please don't hesitate to ask.

Thank you for your assistance.

EDIT: Please note that the repository mentioned above is a testing repository, and the code provided consists of random open-source files.

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training