Eduard Kabrinskiy - Pull request azure devops - Kabrinskiy Eduard
<h1>Pull request azure devops</h1>
<p>[youtube]</p>
Pull request azure devops <a href="http://remmont.com">What's the news</a> Pull request azure devops
<h1>Use pull request decoration in Azure DevOps with SonarCloud</h1>
<p>Some time ago I wrote about how to fail your Azure Pipeline, if your SonarQube quality gate fails. I often get the request how you can do the same thing with SonarCloud. But it?s much better to use <strong>pull request decoration.</strong> This is really an awesome feature. You get the SonarQube Errors directly in the pull request and the quality gate is evaluated.<br /></p>
<p style="clear: both"><img src="https://mkaufmannblog.files.wordpress.com/2019/04/1_feature.png" /> </p>
<p>The configuration is a bit tricky and the options are pretty hard to find. And this only works in SonarCloud or with the SonarQube Developer Edition! I switched completely to SonarCloud ? this is much more convenient.</p>
<p>I asume that you already have a build with the prepare, run and publish tasks configured. Note that there is a different extension for SonarCloud then for SonarQube. Add and configure the tasks accordingly and run the build with the analysis.</p>
<p style="clear: both"><img src="https://mkaufmannblog.files.wordpress.com/2019/04/azure-pipeline-with-sonarcloud-analysis.png" /> </p>
<p>Now got to the project in SonarCloud. Go to ?Generell Settings?, ?Pull Requests?. Select VSTS and enter a Personal Access Token for Azure DevOps that SonarCloud uses to connect to Azure DevOps.</p>
<p style="clear: both"><img src="https://mkaufmannblog.files.wordpress.com/2019/04/general-settings.png" /> <img src="https://mkaufmannblog.files.wordpress.com/2019/04/enter-personal-access-token.png" /> </p>
<p>Now run the build again. If the analysis is complete got the the branch policy in your Azure Repo. If you now add a new Status Policy you will find in the drop down a policy called ?SonarCloud/quality gate?. Select it and save the policy.</p>
<p style="clear: both"><img src="https://mkaufmannblog.files.wordpress.com/2019/04/branch-policies.png" /> <img src="https://mkaufmannblog.files.wordpress.com/2019/04/status-policy.png" /> </p>
<p>That?s it! Now create a pull request and enjoy the SonarCloud decoration. The Status Policy will fail the PR if the SonarCloud Quality Gate fails.</p>
<h2>Pull request azure devops</h2>
<h3>Pull request azure devops</h3>
<p>[youtube]</p>
Pull request azure devops <a href="http://remmont.com">International news</a> Pull request azure devops
<h4>Pull request azure devops</h4>
How to use SonarCloud pull request analysis, pull request decoration and quality gates in Azure DevOps.
<h5>Pull request azure devops</h5>
Pull request azure devops <a href="http://remmont.com">Pull request azure devops</a> Pull request azure devops
SOURCE: <h6>Pull request azure devops</h6> <a href="https://dev-ops.engineer/">Pull request azure devops</a> Pull request azure devops
#tags#[replace: -,-Pull request azure devops] Pull request azure devops#tags#
Eduard Kabrinskiy
headline news
