in src/main/java/jetbrains/buildServer/investigationsAutoAssigner/utils/ProblemTextExtractor.java [25:44]
public String getBuildProblemText(@NotNull final BuildProblem problem, @NotNull final SBuild build) {
StringBuilder problemSpecificText = new StringBuilder();
// todo make an extension point here
if (problem.getBuildProblemData().getType().equals(BuildProblemTypes.TC_COMPILATION_ERROR_TYPE)) {
final Integer compileBlockIndex = getCompileBlockIndex(problem);
if (compileBlockIndex != null) {
AtomicInteger maxErrors = new AtomicInteger(TeamCityProperties.getInteger(Constants.MAX_COMPILE_ERRORS_TO_PROCESS, 100));
BuildLogCompileErrorCollector.collectCompileErrors(compileBlockIndex, build, new ItemProcessor<LogMessage>() {
@Override
public boolean processItem(final LogMessage item) {
problemSpecificText.append(item.getText()).append(" ");
return maxErrors.decrementAndGet() > 0;
}
});
}
}
return problemSpecificText + " " + problem.getBuildProblemDescription();
}