"
To set up the import of Azure DevOps repositories:
Set your global DevOps platform settings
Add a personal access token for importing repositories
Adding a personal access token for importing repositories
After setting your global settings, you can add a project from Azure DevOps by clicking the Add project button in the upper-right corner of the Projects homepage and selecting Azure DevOps.
Then, you'll be asked to provide a personal access token with Code (Read & Write) scope so SonarQube can access and list your Azure DevOps projects. This token will be stored in SonarQube and can be revoked at any time in Azure DevOps.
After saving your personal access token, you'll see a list of your Azure DevOps projects that can be set up and added to SonarQube. Setting up your projects this way also defines your project settings for pull request decoration."
https://docs.sonarqube.org/latest/devops-platform-integration/azure-devops-integration/#analyzing-projects-with-azure-pipelines
You need to import the repo into SonarCloud before everything else and for that you need to create a new project. So, C is definitely not the correct answer.
https://azuredevopslabs.com/labs/vstsextend/sonarcloud/
you only got 800+ so you could be wrong. Very confusing question. You need to create a project, get the token, create service enpoint and modify the build definition. I would go with C. because the question is related to azure devops.
Answer is D:
First you need to create a project in SonarQube. You will then specify the Project Name and DevopsPersonal Access token to be able to import the project.
I'm going to go with: D
Reason: There's nothing on the info where they already have SonarQube setup. And it said to implement projects based on the PLANNED changes. Since there are more than one possible option I'm choosing the choice as if I am starting from zero.
First you need a connection in Azure DevOps to SonarQube. So first add the SonarQube extention in the Azure DevOps and add a new SonarQube service endpoint
Here is the document:
https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/azure-devops-integration/#:~:text=In%20Azure%20DevOps%2C%20go%20to,Save%20to%20save%20your%20connection.
The first step in integrating any external tool, like SonarQube, with Azure DevOps is to establish a secure connection. For this, you need an authentication token from SonarQube. This token allows Azure DevOps to communicate securely with SonarQube. Without the token, you wouldn't be able to set up a proper connection between the two systems.
As per, https://azuredevopslabs.com/labs/vstsextend/sonarcloud/ , the first thing to happen is to Import your repo into SonarCloud and for that we create a new project. Hence the answer is D. The Service Connection comes into picture only when Azure Pipelines nee to access SonarCloud and that happens much later.
C .
1. Installing SonarQube extension
2. Adding a new SonarQube service endpoint
https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/azure-devops-integration/
D. From SonarQube, create a project.
From Azure DevOps, create a service endpoint. you need SonarCloud server URL before.
From SonarQube, obtain an authentication token. you get it by log in to your SonarQube project, My account, Security, Generate tokens.
Service EndPoint is correct
From the Visual Studio Marketplace, install the SonarQube extension by clicking the Get it free button.
After installing your extension, you need to declare your SonarQube server as a service endpoint in your Azure DevOps project settings:
In Azure DevOps, go to Project Settings > Service connections.
Select New service connection and then select SonarQube from the service connection list.
Enter your SonarQube Server URL, an authentication token, and a memorable Service connection name. Then, select Save to save your connection.
https://docs.sonarqube.org/latest/devops-platform-integration/azure-devops-integration/
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
LNE
Highly Voted 3 years, 6 months agoLNE
3 years, 6 months agochingdm
2 years, 1 month agoTrangNguyen_6
Highly Voted 3 years, 8 months agogerardjongh
11 months agogabo
1 year, 5 months agoprashantjoge
2 years, 11 months agoprashantjoge
2 years, 11 months agoprashantjoge
2 years, 11 months agobillycat
Most Recent 3 days, 1 hour agoDankho
2 months, 2 weeks agoDankho
2 months, 2 weeks agohotspot02103
2 months, 2 weeks agoGooldmember
4 months agoGooldmember
4 months agoGooldmember
4 months agoDkijc
4 months, 2 weeks agoMrAZ105
4 months, 2 weeks agoMattt
5 months, 1 week agoMattt
5 months, 2 weeks agovsvaid
1 year, 2 months agoFirdous586
1 year, 4 months agogabo
1 year, 5 months agoieboaix
1 year, 7 months agorenzoku
1 year, 8 months agosudhakaru
1 year, 8 months agorenzoku
1 year, 8 months ago