Search in sources :

Example 6 with BuildProblem

use of jetbrains.buildServer.serverSide.problems.BuildProblem in project teamcity-rest by JetBrains.

the class ProblemFinder method getCurrentProblemsList.

@NotNull
private Set<ProblemWrapper> getCurrentProblemsList(@Nullable SProject project) {
    if (project == null) {
        project = myProjectManager.getRootProject();
    }
    final List<BuildProblem> currentBuildProblemsList = myBuildProblemManager.getCurrentBuildProblemsList(project);
    @NotNull final Set<ProblemWrapper> resultSet = new TreeSet<ProblemWrapper>();
    for (BuildProblem buildProblem : currentBuildProblemsList) {
        resultSet.add(new ProblemWrapper(buildProblem.getId(), buildProblem.getBuildProblemData(), myServiceLocator));
    }
    return resultSet;
}
Also used : BuildProblem(jetbrains.buildServer.serverSide.problems.BuildProblem) NotNull(org.jetbrains.annotations.NotNull) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

BuildProblem (jetbrains.buildServer.serverSide.problems.BuildProblem)6 NotNull (org.jetbrains.annotations.NotNull)3 IOException (java.io.IOException)1 XmlElement (javax.xml.bind.annotation.XmlElement)1 ServiceLocator (jetbrains.buildServer.ServiceLocator)1 Status (jetbrains.buildServer.messages.Status)1 AggregatingItemHolder (jetbrains.buildServer.server.rest.data.util.AggregatingItemHolder)1 ProblemOccurrences (jetbrains.buildServer.server.rest.model.problem.ProblemOccurrences)1 BuildPromotion (jetbrains.buildServer.serverSide.BuildPromotion)1 SecurityContext (jetbrains.buildServer.serverSide.auth.SecurityContext)1 DBActionNoResults (jetbrains.buildServer.serverSide.db.DBActionNoResults)1 DBException (jetbrains.buildServer.serverSide.db.DBException)1 DBFunctions (jetbrains.buildServer.serverSide.db.DBFunctions)1 SQLRunnerEx (jetbrains.buildServer.serverSide.db.SQLRunnerEx)1 BuildProblemImpl (jetbrains.buildServer.serverSide.impl.problems.BuildProblemImpl)1 SUser (jetbrains.buildServer.users.SUser)1 Converter (jetbrains.buildServer.util.Converter)1 ItemProcessor (jetbrains.buildServer.util.ItemProcessor)1 BuildTypeChangeStatus (jetbrains.buildServer.vcs.BuildTypeChangeStatus)1