@Singleton public class DeploymentProjectVersioningResource extends Object
Constructor and Description |
---|
DeploymentProjectVersioningResource(VariableDefinitionManager variableDefinitionManager,
DeploymentProjectService deploymentProjectService,
DeploymentVersionService deploymentVersionService,
CachedPlanManager cachedPlanManager,
CustomVariableContext customVariableContext,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectVersioningResource.RestNamingPreview |
getDeploymentNamingPreview(long deploymentProjectId,
String nextVersionName,
boolean incrementNumbers,
String variablesToIncrementString)
Get deployment version name preview.
|
com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectVersioningResource.VersionVariables |
getDeploymentProjectVariables(long deploymentProjectId)
Get variables associated with deployment project.
|
com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectVersioningResource.RestNamingPreview |
getNextDeploymentVersions(long deploymentProjectId,
String resultKey)
Get next deployment version name
|
Collection<String> |
getVariablesFromName(long deploymentProjectId,
String versionName)
Extract variables value from version name.
|
public DeploymentProjectVersioningResource(VariableDefinitionManager variableDefinitionManager, DeploymentProjectService deploymentProjectService, DeploymentVersionService deploymentVersionService, CachedPlanManager cachedPlanManager, CustomVariableContext customVariableContext, com.atlassian.sal.api.message.I18nResolver i18nResolver)
public com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectVersioningResource.VersionVariables getDeploymentProjectVariables(long deploymentProjectId) throws WebValidationException
deploymentProjectId
- deployment project idWebValidationException
public com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectVersioningResource.RestNamingPreview getDeploymentNamingPreview(long deploymentProjectId, String nextVersionName, boolean incrementNumbers, String variablesToIncrementString) throws WebValidationException
deploymentProjectId
- deployment project idnextVersionName
- name version. MandatoryincrementNumbers
- if version number should be incrementedvariablesToIncrementString
- variables used for version name. Divided by comaWebValidationException
public com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentProjectVersioningResource.RestNamingPreview getNextDeploymentVersions(long deploymentProjectId, String resultKey) throws WebValidationException
deploymentProjectId
- deployment project idresultKey
- build result keyWebValidationException
public Collection<String> getVariablesFromName(long deploymentProjectId, String versionName) throws WebValidationException
deploymentProjectId
- deployment project idversionName
- version nameWebValidationException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.