Package jetbrains.buildServer.serverSide
Interface ArtifactDependencyFactory
-
- All Known Implementing Classes:
ArtifactDependencyFactoryImpl
public interface ArtifactDependencyFactory
- Author:
- Pavel.Sher Date: 13.03.2008
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SArtifactDependency
copyArtifactDependencyWithNewId(SArtifactDependency dependency)
Copies an artifact dependency generating new id for it.SArtifactDependency
createArtifactDependency(String id, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by a build configuration specified by its external id.SArtifactDependency
createArtifactDependency(String id, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule, Function<String,EntityId<String>> externalIdResolver)
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolver.SArtifactDependency
createArtifactDependency(String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by a build configuration specified by its external id.SArtifactDependency
createArtifactDependency(String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule, Function<String,EntityId<String>> externalIdResolver)
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolverSArtifactDependency
createArtifactDependency(BuildType sourceBuildType, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by a build configuration.SArtifactDependency
createArtifactDependencyByInternalId(String id, String sourceBuildTypeInternalId, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)
Creates an artifact dependency by build type internal id.SArtifactDependency
createArtifactDependencyByInternalId(String sourceBuildTypeInternalId, String sourceBuildTypeExternalId, String sourcePaths, RevisionRule revisionRule)
-
-
-
Method Detail
-
createArtifactDependency
SArtifactDependency createArtifactDependency(@NotNull BuildType sourceBuildType, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule)
Creates an artifact dependency by a build configuration.- Parameters:
sourceBuildType
- the build configuration to depend on.sourcePaths
-revisionRule
-- Returns:
- Since:
- 8.0
-
createArtifactDependency
SArtifactDependency createArtifactDependency(@NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule) throws InvalidIdentifierException
Creates an artifact dependency by a build configuration specified by its external id.- Parameters:
sourceBuildTypeExternalId
- the external id of the build configuration to depend on.sourcePaths
-revisionRule
-- Returns:
- Throws:
InvalidIdentifierException
- Since:
- 8.0
-
createArtifactDependency
SArtifactDependency createArtifactDependency(@NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule, @NotNull Function<String,EntityId<String>> externalIdResolver) throws InvalidIdentifierException
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolver- Parameters:
sourceBuildTypeExternalId
- the external id of the build configuration to depend on.sourcePaths
-revisionRule
-externalIdResolver
- a function used to resolve build type external id into its EntityId- Returns:
- Throws:
InvalidIdentifierException
- Since:
- 8.0
-
createArtifactDependencyByInternalId
SArtifactDependency createArtifactDependencyByInternalId(@NotNull String sourceBuildTypeInternalId, @Nullable String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule)
- Parameters:
sourceBuildTypeInternalId
- the internal id of an existent build configuration to depend on.sourceBuildTypeExternalId
- external id of the source build type if known- See Also:
createArtifactDependency(jetbrains.buildServer.BuildType, String, jetbrains.buildServer.artifacts.RevisionRule)
,createArtifactDependency(String, String, jetbrains.buildServer.artifacts.RevisionRule)
-
createArtifactDependency
SArtifactDependency createArtifactDependency(@NotNull String id, @NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule, @NotNull Function<String,EntityId<String>> externalIdResolver) throws InvalidIdentifierException
Creates an artifact dependency by a build configuration specified by its external id using specified external id resolver. This method does not generate the artifact dependency own id, but sets whatever is provided in its first argument.- Parameters:
id
- artifact dependency idsourceBuildTypeExternalId
- the external id of the build configuration to depend on.sourcePaths
-revisionRule
-externalIdResolver
- a function used to resolve build type external id into its EntityId- Returns:
- Throws:
InvalidIdentifierException
- Since:
- 10.0
-
createArtifactDependency
SArtifactDependency createArtifactDependency(@NotNull String id, @NotNull String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule) throws InvalidIdentifierException
Creates an artifact dependency by a build configuration specified by its external id. This method does not generate the artifact dependency own id, but sets whatever is provided in its first argument.- Parameters:
id
- artifact dependency idsourceBuildTypeExternalId
- the external id of the build configuration to depend on.sourcePaths
-revisionRule
-- Returns:
- Throws:
InvalidIdentifierException
- Since:
- 10.0
-
createArtifactDependencyByInternalId
SArtifactDependency createArtifactDependencyByInternalId(@NotNull String id, @NotNull String sourceBuildTypeInternalId, @Nullable String sourceBuildTypeExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule) throws InvalidIdentifierException
Creates an artifact dependency by build type internal id. This method does not generate the artifact dependency own id, but sets whatever is provided in its first argument.- Parameters:
id
- artifact dependency idsourceBuildTypeInternalId
- the internal id of an existent build configuration to depend on.sourceBuildTypeExternalId
- external id of the source build type if known- Throws:
InvalidIdentifierException
- Since:
- 10.0
- See Also:
createArtifactDependency(jetbrains.buildServer.BuildType, String, jetbrains.buildServer.artifacts.RevisionRule)
,createArtifactDependency(String, String, String, jetbrains.buildServer.artifacts.RevisionRule)
-
copyArtifactDependencyWithNewId
SArtifactDependency copyArtifactDependencyWithNewId(@NotNull SArtifactDependency dependency)
Copies an artifact dependency generating new id for it.- Parameters:
dependency
- Artifact dependency to copy- Returns:
- Since:
- 10.0
-
-