public interface DeploymentVersionVcsChangesetService
DeploymentVersion
Modifier and Type | Method and Description |
---|---|
DeploymentVersionCommitsComparisonResult |
compareVersionsByChangesets(long deploymentProjectId,
DeploymentVersion version1,
DeploymentVersion version2,
int maxCommits)
Find all
DeploymentVersionVcsChangeset that happened after creation of older version until (and including) the creation of newer version. |
List<DeploymentVersionVcsChangeset> |
getChangesetsForDeploymentVersion(DeploymentVersion deploymentVersion)
Find all
DeploymentVersionVcsChangeset associated with a DeploymentVersion |
DeploymentVersionCommitsComparisonResult |
getChangesetsForNewDeploymentVersion(long deploymentProjectId,
PlanResultKey planResultKey,
int maxCommits)
Finds the changesets if a new version would be created from planResultKey.
|
DeploymentVersionCommitsComparisonResult |
getChangesetsForNewDeploymentVersion(long deploymentProjectId,
PlanResultKey planResultKey,
int maxCommits,
DeploymentVersion version)
Same as above, but finds changesets between a certain version and the new version to be created from the planResultKey.
|
int |
getCommitCountForDeploymentVersion(DeploymentVersion deploymentVersion)
count of all commits in all changesets associated with a
DeploymentVersion |
DeploymentVersionCommitsComparisonResult |
getLastNCommitsForVersion(long deploymentProjectId,
DeploymentVersion deploymentVersion,
int maxCommits)
Find changesets for the version and fetch n last commits.
|
@NotNull List<DeploymentVersionVcsChangeset> getChangesetsForDeploymentVersion(@NotNull DeploymentVersion deploymentVersion)
DeploymentVersionVcsChangeset
associated with a DeploymentVersion
deploymentVersion
- a versionint getCommitCountForDeploymentVersion(@NotNull DeploymentVersion deploymentVersion)
DeploymentVersion
deploymentVersion
- a version@NotNull DeploymentVersionCommitsComparisonResult compareVersionsByChangesets(long deploymentProjectId, @NotNull DeploymentVersion version1, @NotNull DeploymentVersion version2, int maxCommits)
DeploymentVersionVcsChangeset
that happened after creation of older version until (and including) the creation of newer version.deploymentProjectId
- version1
- 1st version to compare (can be either older or newer than version2)version2
- 2nd version to compare (can be either older or newer than version1)maxCommits
- maximum number of commits fetched with full informationIllegalStateException
- if versions are not comparable (e.g. come from different branch)@NotNull DeploymentVersionCommitsComparisonResult getLastNCommitsForVersion(long deploymentProjectId, DeploymentVersion deploymentVersion, int maxCommits)
deploymentProjectId
- deploymentVersion
- maxCommits
- @NotNull DeploymentVersionCommitsComparisonResult getChangesetsForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, int maxCommits)
deploymentProjectId
- id of the deployment projectplanResultKey
- of the build result we want to create version frommaxCommits
- @NotNull DeploymentVersionCommitsComparisonResult getChangesetsForNewDeploymentVersion(long deploymentProjectId, PlanResultKey planResultKey, int maxCommits, @NotNull DeploymentVersion version)
deploymentProjectId
- id of the deployment projectplanResultKey
- of the build result we want to create version frommaxCommits
- max number of commits to fetchversion
- DeploymentVersion that we want to compare the planResultKey to in order to get the changesetsCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.