Define SonarQube tag in the pipeline or using API


We’re using SonarQube – EE 9.4

Is there a way to define SQ tag variables in the pipeline? We are using BitBucket, Jenkins as well as GitHub actions. We have multiple teams in our org and we’re trying to differentiate projects using tags in SQ. Please let me know if you have any questions.

Thank you


it seems it’s not possible to set a project tag via analysis property.
As your pipelines will use a technical user with Sonarqube admin permissions you may use
the web api POST api/project_tags/set to set project tags.

see http(s)://yoursonarhost/web_api/api/project_tags