Anyway to fail build/block pipelines from running if SonarCloud is not implemented in pipeline

Hi everyone,

We have implemented SonarCloud in our organization, and I wanted to know if there is a way in the pipelines where I can scan to see if SonarCloud steps were implemented and block the pipeline from running, or just fail if the tasks are not there. Or maybe send a notification if SonarCloud is not implemented in pipeline.

Thank you.

Hey there.

If you’re using Azure DevOps, you might be able to take advantage of Azure DevOps REST API (to list and get pipeline data) in order to search for pipelines that don’t have the tasks you’re expecting.

Colin, can you please clarify ?

… you’re going to have to clarify what you want me to clarify!