CodeHealth is a non-voting job in out integration configuration that runs sonarcube for several of our projects.
It is used by adding a line in the template section of a job, see for example the configuration for Lexeme:
https://github.com/wikimedia/integration-config/blob/master/zuul/layout.yaml#L4589-L4595
The Query Builder configuration was added in https://gerrit.wikimedia.org/r/c/integration/config/+/670898
The code-health template is defined further up in that file:
https://github.com/wikimedia/integration-config/blob/60f01f51f24507521c4c9fbc61f06cb6a1ac0a01/zuul/layout.yaml#L1585-L1589
And more details about how these jobs are run are in their definition: https://github.com/wikimedia/integration-config/blob/60f01f51f24507521c4c9fbc61f06cb6a1ac0a01/jjb/mediawiki.yaml#L647
More general information and tutorials about WMF CI can be found at: https://www.mediawiki.org/wiki/Continuous_integration