Log into Jenkins as an administrator and go to Manage Jenkins > Configure System.Add the SonarQube for MSBuild - End Analysis build steps to your buildĪnalyzing a Java project with Maven or Gradle.Add the MSBuild build step or the Execute Windows batch command to execute the build with MSBuild 14 (see compatibility) to your build.Configure the SonarQube Project Key, Name, and Version in the SonarScanner for MSBuild - Begin Analysis build step.Add the SonarQube for MSBuild - Begin Analysis to your build.Configure the project, and go to the Build section.
Jenkins docker ip timeout install#
If you do not see any available version under Install from GitHub, first go to Manage Jenkins > Manage Plugins > Advanced and click on Check now Check Install automatically to have the SonarScanner for MSBuild automatically provisioned on your Jenkins executors Add an installation of the latest available version.Log into Jenkins as an administrator and go to Manage Jenkins > Global Tool Configuration.Then for each Jenkins job, you will be able to choose which launcher to use to run the SonarQube analysis. You can define as many scanner instances as you wish. This step is mandatory if you want to trigger any of your analyses with the SonarScanner for. The server authentication token should be created as a 'Secret Text' credential.Scroll down to the SonarQube configuration section, click Add SonarQube, and add the values you're prompted for.Log into Jenkins as an administrator and go to Manage Jenkins > Configure System.Install the SonarScanner for Jenkins via the Jenkins Update Center.Once the job is complete, the plugin will detect that a SonarQube analysis was made during the build and display a badge and a widget on the job page with a link to the SonarQube dashboard as well as quality gate status. Then you can trigger SonarQube analysis from Jenkins using standard Jenkins Build Steps or Jenkins Pipeline DSL to trigger analysis with: This plugin lets you centralize the configuration of SonarQube server connection details in Jenkins global configuration.