jetbrains.buildServer.BuildProblemData Java Examples

The following examples show how to use jetbrains.buildServer.BuildProblemData. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SlackNotificationPayloadContent.java    From tcSlackBuildNotifier with MIT License 6 votes vote down vote up
private void populateResults(SRunningBuild sRunningBuild) {
    List<BuildProblemData> failureReasons = sRunningBuild.getFailureReasons();
    if(failureReasons == null){
        return;
    }
    HashSet<String> failureTestNames = new HashSet<String>();
    HashSet<String> failureMessages = new HashSet<String>();
    for(BuildProblemData reason : failureReasons){
        if(reason.getType() == BuildProblemData.TC_FAILED_TESTS_TYPE){
            List<TestInfo> failedTestMessages = sRunningBuild.getTestMessages(0, 2000);
            if(!failedTestMessages.isEmpty()) {
                for (TestInfo failedTest : failedTestMessages) {
                    failureTestNames.add(failedTest.getName());
                }
            }
            else {
                failureMessages.add(reason.getDescription());
            }
        }
        else {
            failureMessages.add(reason.getDescription());
        }
    }
    failedBuildMessages = new ArrayList<String>(failureMessages);
    failedTestNames = new ArrayList<String>(failureTestNames);
}
 
Example #2
Source File: SymbolsIndexer.java    From teamcity-symbol-server with Apache License 2.0 4 votes vote down vote up
private static void checkAndReportRuntimeRequirements(@NotNull BuildAgentConfiguration agentConfiguration, @NotNull BuildProgressLogger logger){
  for (String parameterName : agentConfiguration.getConfigurationParameters().keySet()) {
    if(NET_4X_PATTERN.matcher(parameterName).find()) return;
  }
  logger.logBuildProblem(BuildProblemData.createBuildProblem(NET_45_NOT_FOUND_PROBLEM_IDENTITY, BuildProblemTypes.TC_ERROR_MESSAGE_TYPE, ".NET 4.5 runtime required for symbols indexing was not found on build agent."));
}
 
Example #3
Source File: DeployerAgentUtils.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
public static void logBuildProblem(BuildProgressLogger logger, String message) {
  logger.logBuildProblem(BuildProblemData
          .createBuildProblem(String.valueOf(message.hashCode()),
                  DeployerRunnerConstants.BUILD_PROBLEM_TYPE,
                  "Deployment problem: " + message));
}
 
Example #4
Source File: SSHExecProcessAdapter.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
private void logExitCodeBuildProblem(int exitCode) {
  myLogger.logBuildProblem(BuildProblemData.createBuildProblem(SSHRunnerConstants.SSH_EXEC_RUN_TYPE + ":" + exitCode, BuildProblemTypes.TC_EXIT_CODE_TYPE, "SSH exit-code " + exitCode));
}
 
Example #5
Source File: MockSRunningBuild.java    From tcSlackBuildNotifier with MIT License 4 votes vote down vote up
@Override
public void addBuildProblem(BuildProblemData arg0) {
	// TODO Auto-generated method stub
	
}
 
Example #6
Source File: MockSRunningBuild.java    From tcSlackBuildNotifier with MIT License 4 votes vote down vote up
@Override
public BuildProblemData addUserBuildProblem(User arg0, String arg1) {
	// TODO Auto-generated method stub
	return null;
}
 
Example #7
Source File: MockSRunningBuild.java    From tcSlackBuildNotifier with MIT License 4 votes vote down vote up
@Override
public List<BuildProblemData> getFailureReasons() {
	// TODO Auto-generated method stub
	return null;
}
 
Example #8
Source File: ReportsMain.java    From appengine-tck with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public List<BuildProblemData> getFailureReasons() {
    return null;
}
 
Example #9
Source File: ReportsMain.java    From appengine-tck with Apache License 2.0 4 votes vote down vote up
@Override
public BuildProblemData addUserBuildProblem(@NotNull SUser sUser, @NotNull String s) {
    return null;
}
 
Example #10
Source File: ReportsMain.java    From appengine-tck with Apache License 2.0 2 votes vote down vote up
@Override
public void addBuildProblem(@NotNull BuildProblemData buildProblemData) {

}