Skip to content

Sonar Report generation error #9

@BraisVQ

Description

@BraisVQ

SonarQube report execution errors, when main/master branch is empty in Sonar or does not contain data

First error:

+ set +x
Exception in thread "main" org.json.JSONException: JSONObject["analysisDate"] not found.
	at org.json.JSONObject.get(JSONObject.java:596)
	at org.json.JSONObject.getString(JSONObject.java:883)
	at GenerateSonarReport.main(GenerateSonarReport.java:104)

Second error:

+ set +x
Exception in thread "main" org.json.JSONException: JSONArray[0] not found.
  at org.json.JSONArray.get(JSONArray.java:273)
  at org.json.JSONArray.getJSONObject(JSONArray.java:486)
  at GenerateSonarReport.main(GenerateSonarReport.java:346)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions