End-to-end CI/CD pipeline Setup with Azure DevOps for Mobile App: SonarCloud integration—Part 3.

Sandeep Rajbhar
2 min readJul 9, 2023

--

In this article, we shall integrate a sonar cloud job along with a build breaker into the pipeline to check the quality gate result. Break the pipeline in case the quality gate fails and stop the build and release processes. It will save execution time by around 30 minutes on iOS and 20 minutes on Android.

Prerequisite

You must have already gone through PART1 and PART2 of this series. Along with Sonar Cloud with GitHub.

  1. Select any existing basic pipeline for iOS or Android and add sonar cloud jobs as mentioned below in the screenshot
Before Sonar Cloud integration
After Sonar Cloud integration

2. As we have already learned in the previous article about sonar cloud integration on GitHub and created a pipeline for the same, we will do exactly the same configuration. Apart from that, we will add a build breaker job to our pipeline. Do the configuration as per the below screenshot.

That’s it.

Pipeline with Failed quality gate result and build breaker look like this,
The pipeline with passed quality gate result and build breaker look like this,

--

--

Sandeep Rajbhar
Sandeep Rajbhar

Written by Sandeep Rajbhar

Solution Architect at Royal Cyber.

No responses yet