Setting up a Sonarqube server is explained in the post “Setting Up Sonar Server for TFS”. Sonar analysis helps to identify the technical debt in the source code of your project. Running it integrated with team service or TFS builds add more value by automating the quality checks with sonar server.
To run Sonarqube analysis for a project with TFS follow the steps described below.
1. Connect the Sonarqube server as a service endpoint in Team Project. For this go to settings –> Services and click New Service Endpoint –> Generic
2. Fill the information. Connection Name can be any name you prefer. Provide the Sonarqube URL as the Server URL. Provide Sonarqube Admin user name ad password.
3. Choose a build which is building a VS application fine at the moment and add SonarQube Begin Analysis and End Analysis steps from Task catalogue. Select the SonarQube endpoint created. Provide a key, name and a version for the project.
4. In the end analysis leave as it is nothing special needed.
5. Queue a build and analysis will run and send information to the SonarQube server.
6. In the SonarQube server you can see the results of the analysis.
Friday 9 December 2016
Subscribe to:
Post Comments (Atom)
Popular Posts
-
az aks get-credentials is used to get the kubeconfig updated so that we can access AKS clusters from a terminal (You need to first use az ...
-
GitHub Actions are the CI/CD workflow implementation tool built into GitHub repos. While using the GitHub Actions workflows you may want to ...
-
In Azure DevOps YAML pipelines there are several functions available for you to use. replace is such a useful function, which you can use t...
-
Some times a silly mistake can waste lot of time of a developer. The exception “System.IO.IOException: The response ended prematurely.” whil...
-
Pull Request are the controlled way to bring in the changes to your stable branches in your Azure Git repos, or for that matter all Git prov...
No comments:
Post a Comment