jetbrains.buildServer.serverSide
Interface VcsStatusProvider


public interface VcsStatusProvider

Collects success / failure statuses for VCS roots in build configurations.


Method Summary
 void connectionFailed(BuildType buildType, VcsRoot root, java.lang.Throwable problem)
          Notifies that connection is failed for specified VCS root and build configuration.
 void connectionSuccessful(BuildType buildType, VcsRoot root)
          Clears last failure for specified VCS root and build configuration.
 VcsConnectionStatus getConnectionStatus(BuildType buildType, VcsRoot root)
          Returns last connection status for specified build configuration and VCS root
 java.util.Map<BuildType,java.util.Collection<VcsRoot>> getFailuresPerBuildType()
          Returns map of build configuration and vcs root pairs where connection is failed
 boolean isVcsRootHasGoodStatus(VcsRoot root)
          Check if VCS root has good status in every configuration it attached to
 

Method Detail

connectionFailed

void connectionFailed(@NotNull
                      BuildType buildType,
                      @NotNull
                      VcsRoot root,
                      @NotNull
                      java.lang.Throwable problem)
Notifies that connection is failed for specified VCS root and build configuration.

Parameters:
buildType - build configuration for which to store connection status. If build configuration is null, then error is stored for all build configurations where this root is used.
root - VCS root for which to store connection status
problem - error

connectionSuccessful

void connectionSuccessful(@NotNull
                          BuildType buildType,
                          @NotNull
                          VcsRoot root)
Clears last failure for specified VCS root and build configuration.

Parameters:
buildType - build configuration to clear error for. If build configuration is null, then error is cleared for all build configurations where this root is used.
root - VCS root

getConnectionStatus

@NotNull
VcsConnectionStatus getConnectionStatus(@NotNull
                                                BuildType buildType,
                                                @NotNull
                                                VcsRoot root)
Returns last connection status for specified build configuration and VCS root

Parameters:
buildType - build configuration
root - VCS root
Returns:
VCS connection status

getFailuresPerBuildType

@NotNull
java.util.Map<BuildType,java.util.Collection<VcsRoot>> getFailuresPerBuildType()
Returns map of build configuration and vcs root pairs where connection is failed

Returns:
see above

isVcsRootHasGoodStatus

boolean isVcsRootHasGoodStatus(@NotNull
                               VcsRoot root)
Check if VCS root has good status in every configuration it attached to

Parameters:
root - VCS root of interest
Returns:
see above
Since:
7.0