Does SonarQube Payload contain Language?, e.g. COBOL

  • which versions are you using : Sonarqube
  • what are you trying to achieve: I need to verify that the SonarQube payload contains language (E.g. COBOL)
  • what have you tried so far to achieve this: I am looking for the payload, where to find it?

For example here: https://docs.sonarqube.org/latest/project-administration/webhooks/

I don’t see information about the language in this payload.

{
    "analysedAt": "2016-11-18T10:46:28+0100",
    "project": {
        "key": "org.sonarqube:example",
        "name": "Example"
    },
    "properties": {
    },
    "qualityGate": {
        "conditions": [
            {
                "errorThreshold": "1",
                "metric": "new_security_rating",
                "onLeakPeriod": true,
                "operator": "GREATER_THAN",
                "status": "OK",
                "value": "1"
            },
            {
                "errorThreshold": "1",
                "metric": "new_reliability_rating",
                "onLeakPeriod": true,
                "operator": "GREATER_THAN",
                "status": "OK",
                "value": "1"
            },
            {
                "errorThreshold": "1",
                "metric": "new_maintainability_rating",
                "onLeakPeriod": true,
                "operator": "GREATER_THAN",
                "status": "OK",
                "value": "1"
            },
            {
                "errorThreshold": "80",
                "metric": "new_coverage",
                "onLeakPeriod": true,
                "operator": "LESS_THAN",
                "status": "NO_VALUE"
            }
        ],
        "name": "SonarQube way",
        "status": "OK"
    },
    "serverUrl": "http://localhost:9000",
    "status": "SUCCESS",
    "taskId": "AVh21JS2JepAEhwQ-b3u"
}

Hi,

As you’ve discovered, the webhook payload does not contain the list of languages in the project; that detail is entirely incidental to the message: whether or not the project passed or failed the quality gate with this analysis.

Perhaps you could elaborate on what you’re trying to do?

 
Ann