Skip to content

Commit

Permalink
Java ITs: Fix CE task extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
costin-zaharia-sonarsource committed Mar 26, 2024
1 parent 26bb4c6 commit 97fd501
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,10 @@ private static String extractCeTaskId(BuildResult buildResult) {
}

private static List<String> extractCeTaskIds(BuildResult buildResult) {
// The log looks like this:
// INFO: More about the report processing at http://127.0.0.1:53395/api/ce/task?id=0f639b4c-6421-4620-81d0-eac0f5759f06
return buildResult.getLogsLines(s -> s.contains("More about the report processing at")).stream()
.map(s -> s.substring(s.length() - 20))
.map(s -> s.substring(s.lastIndexOf("=") + 1))
.collect(Collectors.toList());
}
}

0 comments on commit 97fd501

Please sign in to comment.