com.atlassian.bamboo.deployments.versions.service
Interface DeploymentVersionChainResultDataCollector

All Known Implementing Classes:
DeploymentVersionChainResultDataCollectorImpl

public interface DeploymentVersionChainResultDataCollector


Method Summary
 void createChangesetsAndJiraIssues(long deploymentProjectId, MutableDeploymentVersion mutableDeploymentVersion, 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.
 Pair<java.util.List<MutableDeploymentVersionVcsChangeset>,java.util.List<InternalLinkedJiraIssue>> findChangesetsAndJiraIssues(long deploymentProjectId, MutableDeploymentVersion newVersion, 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.
 Pair<java.util.List<DeploymentVersionVcsChangeset>,java.util.List<InternalLinkedJiraIssue>> findImmutableChangesetsAndJiraIssues(long deploymentProjectId, MutableDeploymentVersion newVersion, 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.
 

Method Detail

createChangesetsAndJiraIssues

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.

Parameters:
deploymentProjectId - id of the Deployment Project version is related to
mutableDeploymentVersion - version being created
planResultKey - the key of build result this version is created from

findChangesetsAndJiraIssues

@NotNull
Pair<java.util.List<MutableDeploymentVersionVcsChangeset>,java.util.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.

Parameters:
deploymentProjectId - id of the Deployment Project version is related to
newVersion - version being created - might be null if we don't want to save anything in db
planResultKey - the key of build result this version is created from
Returns:
Pair.getFirst() - list of changesets, Pair.getSecond() - list of JIRA issues

findImmutableChangesetsAndJiraIssues

@NotNull
Pair<java.util.List<DeploymentVersionVcsChangeset>,java.util.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.

Parameters:
deploymentProjectId - id of the Deployment Project version is related to
newVersion - version being created - might be null if we don't want to save anything in db
planResultKey - the key of build result this version is created from
Returns:
Pair.getFirst() - list of immutable changesets, Pair.getSecond() - list of JIRA issues


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.