Interface DeploymentContext
-
- All Superinterfaces:
CommonContext
,Serializable
- All Known Implementing Classes:
DeploymentContextImpl
public interface DeploymentContext extends CommonContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Map<String,String>
getArtifactHandlerConfiguration()
long
getDeploymentProjectId()
@NotNull String
getDeploymentProjectName()
long
getDeploymentResultId()
@NotNull DeploymentVersion
getDeploymentVersion()
long
getEnvironmentId()
@NotNull String
getEnvironmentName()
@NotNull Map<String,String>
getPluginConfigMap(String key)
Returns configuration map that is mapped to provided key.@Nullable String
getPreviousVersionName()
@NotNull com.google.common.collect.Multimap<String,Artifact>
getVersionArtifacts()
boolean
isRollback()
-
Methods inherited from interface com.atlassian.bamboo.v2.build.CommonContext
getArtifactContext, getBuildKey, getChainStorageTags, getCurrentResult, getDisplayName, getDockerPipelineConfiguration, getEntityGroupId, getEntityId, getEntityKey, getErrorCollection, getResultKey, getRuntimeTaskDefinitions, getSharedCredentials, getTriggerReason, getVariableContext, getVcsRepositories, getVcsRepositoryMap, isExpectingCustomDedicatedAgent, isVerboseLoggingOn
-
-
-
-
Method Detail
-
getDeploymentResultId
long getDeploymentResultId()
-
getEnvironmentId
long getEnvironmentId()
-
getDeploymentProjectId
long getDeploymentProjectId()
-
getDeploymentVersion
@NotNull @NotNull DeploymentVersion getDeploymentVersion()
-
getArtifactHandlerConfiguration
@NotNull @NotNull Map<String,String> getArtifactHandlerConfiguration()
-
getVersionArtifacts
@NotNull @NotNull com.google.common.collect.Multimap<String,Artifact> getVersionArtifacts()
-
getDeploymentProjectName
@NotNull @NotNull String getDeploymentProjectName()
-
getEnvironmentName
@NotNull @NotNull String getEnvironmentName()
-
isRollback
boolean isRollback()
-
getPreviousVersionName
@Nullable @Nullable String getPreviousVersionName()
-
getPluginConfigMap
@NotNull @NotNull Map<String,String> getPluginConfigMap(String key)
Returns configuration map that is mapped to provided key. Plugins can change its context during deployment execution. Any changes made to this map are not saved in database.- Parameters:
key
-CustomEnvironmentConfigPlugin
full plugin key- Returns:
- configuration map
-
-