Hi guys, I’ve been in a bit of a pickle. Mainly because I kind of need this feature to make my life a bit easier.
Right now, we built an automated pipeline in jenkins with shared libraries, and we have different stages from testing, scanning, building artifacts, all the way to automatic deployment on openshift/kubernetes for about 60-100+ services and increasing.
The problem I’m having is, our development cycle. Devs want to see if their code runs on the dev namespaces, but also check for owasp vulnerabilities and code duplication. Testers wants to view the code coverage and also make sure that there are at least 50%+ unit tests and integration tests. Prod wants all of that but code coverage set at 80% and other additional rules.
Possible unfeasible solution
I can set up a dev profile, test profile and prod profile through the UI for all 100+ services, but it would take me forever, be very tedious and I’ll refuse to do it like that.
I was hoping that we can automatically assign a project to a specific quality gate/profile through the sonarqube webapi. Problem is it’s hard to navigate the api parameters through the docs, not to mention there are hidden parameters and functionality as well.
It would be easy to assign, because our pipeline builds depending on the branch. For example, “feature” branches are Dev, “develop” branches are for test and “master” branch is for production.
So auto-assigning a specific project to a specific quality profile would be nice to have, please add the feature.
PS: If anyone has a workaround, I would love to know.