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
Constructors Constructor Description DeploymentVersionChainResultDataCollectorImpl(DeploymentVersionDao deploymentVersionDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, ResultsSummaryManager resultsSummaryManager, RepositoryChangesetDao repositoryChangesetDao, LinkedJiraIssueDao linkedJiraIssueDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.@NotNull Pair<List<MutableDeploymentVersionVcsChangeset>,List<InternalLinkedJiraIssue>>
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 Detail
-
DeploymentVersionChainResultDataCollectorImpl
public DeploymentVersionChainResultDataCollectorImpl(DeploymentVersionDao deploymentVersionDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, ResultsSummaryManager resultsSummaryManager, RepositoryChangesetDao repositoryChangesetDao, LinkedJiraIssueDao linkedJiraIssueDao)
-
-
Method Detail
-
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
-
-