jetbrains.buildServer.serverSide.artifacts.BuildArtifacts Java Examples

The following examples show how to use jetbrains.buildServer.serverSide.artifacts.BuildArtifacts. 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: BuildSymbolsIndexProvider.java    From teamcity-symbol-server with Apache License 2.0 5 votes vote down vote up
@Nullable
private String locateArtifact(@NotNull SBuild build, final @NotNull String artifactName) {
  final AtomicReference<String> locatedArtifactPath = new AtomicReference<String>(null);
  build.getArtifacts(BuildArtifactsViewMode.VIEW_ALL_WITH_ARCHIVES_CONTENT).iterateArtifacts(artifact -> {
    if(artifact.getName().equals(artifactName)){
      locatedArtifactPath.set(artifact.getRelativePath());
      return BuildArtifacts.BuildArtifactsProcessor.Continuation.BREAK;
    }
    else return BuildArtifacts.BuildArtifactsProcessor.Continuation.CONTINUE;
  });
  return locatedArtifactPath.get();
}
 
Example #2
Source File: MockSRunningBuild.java    From tcSlackBuildNotifier with MIT License 4 votes vote down vote up
public BuildArtifacts getArtifacts(BuildArtifactsViewMode arg0) {
	// TODO Auto-generated method stub
	return null;
}
 
Example #3
Source File: ReportsMain.java    From appengine-tck with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public BuildArtifacts getArtifacts(@NotNull BuildArtifactsViewMode buildArtifactsViewMode) {
    return null;
}