Skip to content

Commit 01349d7

Browse files
AST-37667 send the agent to the results command (#323)
1 parent e86bcb2 commit 01349d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ public Results results(@NonNull UUID scanId) throws IOException, InterruptedExce
261261
.readValue(results(scanId, ReportFormat.json));
262262
}
263263

264+
public Results results(@NonNull UUID scanId, String agent) throws IOException, InterruptedException, CxException {
265+
return new ObjectMapper()
266+
.readerFor(Results.class)
267+
.readValue(results(scanId, ReportFormat.json, agent));
268+
}
269+
264270
public String results(@NonNull UUID scanId, ReportFormat reportFormat)
265271
throws IOException, InterruptedException, CxException {
266272
return results(scanId, reportFormat, null);

0 commit comments

Comments
 (0)