Class DeploymentVersionChainResultDataCollectorImpl
java.lang.Object
com.atlassian.bamboo.deployments.versions.service.DeploymentVersionChainResultDataCollectorImpl
- All Implemented Interfaces:
DeploymentVersionChainResultDataCollector
public class DeploymentVersionChainResultDataCollectorImpl
extends Object
implements DeploymentVersionChainResultDataCollector
Helper class used for gathering commits and issues for freshly created Deployment Version.
-
Constructor Summary
ConstructorDescriptionDeploymentVersionChainResultDataCollectorImpl
(DeploymentVersionDao deploymentVersionDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, InternalResultsSummaryAccessor internalResultsSummaryAccessor, RepositoryChangesetDao repositoryChangesetDao, LinkedJiraIssueDao linkedJiraIssueDao) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createChangesetsAndJiraIssues
(long deploymentProjectId, @NotNull MutableDeploymentVersion mutableDeploymentVersion, @NotNull PlanResultKey planResultKey) Finds changes between last version (if it exists) and a new version by looking at build results that happened between the 2 versions and saves them to the db.findChangesetsAndJiraIssues
(long deploymentProjectId, @Nullable MutableDeploymentVersion newVersion, @NotNull PlanResultKey planResultKey) Finds changes between last version (if it exists) and a new version by looking at build results that happened between the 2 versions.@NotNull Pair<List<DeploymentVersionVcsChangeset>,
List<InternalLinkedJiraIssue>> findImmutableChangesetsAndJiraIssues
(long deploymentProjectId, @Nullable MutableDeploymentVersion newVersion, @NotNull PlanResultKey planResultKey) Finds changes between last version (if it exists) and a new version by looking at build results that happened between the 2 versions.
-
Constructor Details
-
DeploymentVersionChainResultDataCollectorImpl
public DeploymentVersionChainResultDataCollectorImpl(DeploymentVersionDao deploymentVersionDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, InternalResultsSummaryAccessor internalResultsSummaryAccessor, RepositoryChangesetDao repositoryChangesetDao, LinkedJiraIssueDao linkedJiraIssueDao)
-
-
Method Details
-
createChangesetsAndJiraIssues
public void createChangesetsAndJiraIssues(long deploymentProjectId, @NotNull @NotNull MutableDeploymentVersion mutableDeploymentVersion, @NotNull @NotNull PlanResultKey planResultKey) Finds changes between last version (if it exists) and a new version by looking at build results that happened between the 2 versions and saves them to the db.- Specified by:
createChangesetsAndJiraIssues
in interfaceDeploymentVersionChainResultDataCollector
- Parameters:
deploymentProjectId
- id of the Deployment Project version is related tomutableDeploymentVersion
- version being createdplanResultKey
- the key of build result this version is created from
-
findChangesetsAndJiraIssues
@NotNull public @NotNull Pair<List<MutableDeploymentVersionVcsChangeset>,List<InternalLinkedJiraIssue>> findChangesetsAndJiraIssues(long deploymentProjectId, @Nullable @Nullable MutableDeploymentVersion newVersion, @NotNull @NotNull PlanResultKey planResultKey) Finds changes between last version (if it exists) and a new version by looking at build results that happened between the 2 versions.- Specified by:
findChangesetsAndJiraIssues
in interfaceDeploymentVersionChainResultDataCollector
- Parameters:
deploymentProjectId
- id of the Deployment Project version is related tonewVersion
- version being created - might be null if we don't want to save anything in dbplanResultKey
- the key of build result this version is created from- Returns:
- Pair.getFirst() - list of changesets, Pair.getSecond() - list of JIRA issues
-
findImmutableChangesetsAndJiraIssues
@NotNull public @NotNull Pair<List<DeploymentVersionVcsChangeset>,List<InternalLinkedJiraIssue>> findImmutableChangesetsAndJiraIssues(long deploymentProjectId, @Nullable @Nullable MutableDeploymentVersion newVersion, @NotNull @NotNull PlanResultKey planResultKey) Finds changes between last version (if it exists) and a new version by looking at build results that happened between the 2 versions.- Specified by:
findImmutableChangesetsAndJiraIssues
in interfaceDeploymentVersionChainResultDataCollector
- Parameters:
deploymentProjectId
- id of the Deployment Project version is related tonewVersion
- version being created - might be null if we don't want to save anything in dbplanResultKey
- the key of build result this version is created from- Returns:
- Pair.getFirst() - list of immutable changesets, Pair.getSecond() - list of JIRA issues
-