]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19346 update payload examples for /api/ce/task and /api/ce/activity
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Thu, 25 May 2023 12:23:48 +0000 (14:23 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 26 May 2023 20:03:08 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/task-example.json

index 5e37d0d80c09243c8c80624193cdc4a70dff66eb..6cdf07a26d990f604e482d14f5cfc0754e6eb611 100644 (file)
@@ -1,44 +1,42 @@
 {
   "tasks": [
     {
-      "organization": "my-org-1",
-      "id": "BU_dO1vsORa8_beWCwsP",
+      "id": "AYhSC2-LY0CHkWJxvNA9",
       "type": "REPORT",
-      "componentId": "AU-Tpxb--iU5OvuD2FLy",
-      "componentKey": "project_1",
-      "componentName": "Project One",
+      "componentId": "AYhNmk00XxCL_lBVBziT",
+      "componentKey": "sonarsource_test_AYhCAUXoEy1XQQcbVndf",
+      "componentName": "test-scanner-maven",
       "componentQualifier": "TRK",
-      "analysisId": "AU-TpxcB-iU5Ovu12345",
+      "analysisId": "AYhSC3WDE6ILQDIMAPIp",
       "status": "SUCCESS",
-      "submittedAt": "2015-08-13T23:34:59+0200",
-      "submitterLogin": "john",
-      "startedAt": "2015-08-13T23:35:00+0200",
-      "executedAt": "2015-08-13T23:35:10+0200",
-      "executionTimeMs": 10000,
-      "hasErrorStacktrace": false,
-      "hasScannerContext": true
+      "submittedAt": "2023-05-25T10:34:21+0200",
+      "submitterLogin": "admin",
+      "startedAt": "2023-05-25T10:34:22+0200",
+      "executedAt": "2023-05-25T10:34:25+0200",
+      "executionTimeMs": 2840,
+      "hasScannerContext": true,
+      "warningCount": 2,
+      "warnings": [
+        "The properties \u0027sonar.login\u0027 and \u0027sonar.password\u0027 are deprecated and will be removed in the future. Please pass a token with the \u0027sonar.token\u0027 property instead.",
+        "Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
+      ]
     },
     {
-      "organization": "my-org-2",
-      "id": "AU_dO1vsORa8_beWCwmP",
-      "taskType": "REPORT",
-      "componentId": "AU_dO1vlORa8_beWCwmO",
-      "componentKey": "project_2",
-      "componentName": "Project Two",
-      "componentQualifier": "TRK",
-      "status": "FAILED",
-      "submittedAt": "2015-09-17T23:34:59+0200",
-      "startedAt": "2015-09-17T23:35:00+0200",
-      "executedAt": "2015-08-13T23:37:00+0200",
-      "executionTimeMs": 120000,
-      "errorMessage": "Failed to unzip analysis report",
-      "hasErrorStacktrace": true,
-      "hasScannerContext": true
+      "id": "71",
+      "type": "GITHUB_AUTH_PROVISIONING",
+      "status": "SUCCESS",
+      "submittedAt": "1970-01-01T01:00:00+0100",
+      "startedAt": "2023-05-23T10:28:41+0200",
+      "executedAt": "2023-05-23T10:29:45+0200",
+      "executionTimeMs": 64861,
+      "hasScannerContext": false,
+      "warningCount": 0,
+      "warnings": []
     }
   ],
   "paging": {
     "pageIndex": 1,
-    "pageSize": 2,
-    "total": 10
+    "pageSize": 10,
+    "total": 2
   }
 }
index 9bd6f326ae6f3479c3f3b863239ad7f0e141ce1d..094be01c9496e10bb3981705c013cbbeae441493 100644 (file)
@@ -1,23 +1,23 @@
 {
   "task": {
-    "organization": "my-org-1",
-    "id": "AVAn5RKqYwETbXvgas-I",
+    "id": "AYhSC2-LY0CHkWJxvNA9",
     "type": "REPORT",
-    "componentId": "AVAn5RJmYwETbXvgas-H",
-    "componentKey": "project_1",
-    "componentName": "Project One",
+    "componentId": "AYhNmk00XxCL_lBVBziT",
+    "componentKey": "sonarsource_test_AYhCAUXoEy1XQQcbVndf",
+    "componentName": "test-scanner-maven",
     "componentQualifier": "TRK",
-    "analysisId": "123456",
-    "status": "FAILED",
-    "submittedAt": "2015-10-02T11:32:15+0200",
-    "startedAt": "2015-10-02T11:32:16+0200",
-    "executedAt": "2015-10-02T11:32:22+0200",
-    "executionTimeMs": 5286,
-    "errorMessage": "Fail to extract report AVaXuGAi_te3Ldc_YItm from database",
-    "logs": false,
-    "hasErrorStacktrace": true,
-    "errorStacktrace": "java.lang.IllegalStateException: Fail to extract report AVaXuGAi_te3Ldc_YItm from database\n\tat org.sonar.server.computation.task.projectanalysis.step.ExtractReportStep.execute(ExtractReportStep.java:50)",
-    "scannerContext": "SonarQube plugins:\n\t- Git 1.0 (scmgit)\n\t- Java 3.13.1 (java)",
-    "hasScannerContext": true
+    "analysisId": "AYhSC3WDE6ILQDIMAPIp",
+    "status": "SUCCESS",
+    "submittedAt": "2023-05-25T10:34:21+0200",
+    "submitterLogin": "admin",
+    "startedAt": "2023-05-25T10:34:22+0200",
+    "executedAt": "2023-05-25T10:34:25+0200",
+    "executionTimeMs": 2840,
+    "hasScannerContext": true,
+    "warningCount": 2,
+    "warnings": [
+      "The properties 'sonar.login' and 'sonar.password' are deprecated and will be removed in the future. Please pass a token with the 'sonar.token' property instead.",
+      "Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
+    ]
   }
 }