jetbrains.buildServer.tags
Interface TagsManager

All Superinterfaces:
ServerExtension, TeamCityExtension

public interface TagsManager
extends ServerExtension

Processes tags on build instances.


Method Summary
 java.util.List<Build> findAll(java.lang.String tag)
          Returns all builds marked with the specified tag.
 java.util.List<Build> findAll(java.lang.String tag, BuildType configuration)
          Returns all builds marked with the specified tag for the specified configuration.
 java.util.List<java.lang.String> getAllTags(Build build)
          Returns all tags assigned for the specified build.
 java.util.List<java.lang.String> getAllTags(BuildType buildType)
          Returns all tags assigned to configuration builds.
 void setTags(java.util.List<java.lang.String> tags, SBuild build)
          Deprecated. Use setTags(User, List, SBuild)
 void setTags(User user, java.util.List<java.lang.String> tags, SBuild build)
          Changes tag set for the specified build.
 

Method Detail

findAll

@NotNull
java.util.List<Build> findAll(java.lang.String tag)
Returns all builds marked with the specified tag.

Parameters:
tag - specified tag.
Returns:
all builds marked with the specified tag.

findAll

@NotNull
java.util.List<Build> findAll(java.lang.String tag,
                                      @NotNull
                                      BuildType configuration)
Returns all builds marked with the specified tag for the specified configuration.

Parameters:
tag - specified tag.
configuration - specified configuration.
Returns:
all builds marked with the specified tag for the specified configuration.

getAllTags

@NotNull
java.util.List<java.lang.String> getAllTags(@NotNull
                                                    Build build)
Returns all tags assigned for the specified build.

Parameters:
build - specified build instance.
Returns:
all tags assigned for the specified build.

setTags

void setTags(java.util.List<java.lang.String> tags,
             @NotNull
             SBuild build)
Deprecated. Use setTags(User, List, SBuild)

Changes tag set for the specified build.

Parameters:
tags - specified tag set.
build - specified build.

setTags

void setTags(User user,
             java.util.List<java.lang.String> tags,
             @NotNull
             SBuild build)
Changes tag set for the specified build.

Parameters:
user - user who set specified tags
tags - specified tag set.
build - specified build.
Since:
4.0.1

getAllTags

@NotNull
java.util.List<java.lang.String> getAllTags(@NotNull
                                                    BuildType buildType)
Returns all tags assigned to configuration builds.

Parameters:
buildType - specified configuration.
Returns:
all tags assigned to configuration builds.