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)
SonarQube report execution errors, when main/master branch is empty in Sonar or does not contain data
First error:
Second error: