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()longgetDeploymentProjectId()@NotNull StringgetDeploymentProjectName()longgetDeploymentResultId()@NotNull DeploymentVersiongetDeploymentVersion()longgetEnvironmentId()@NotNull StringgetEnvironmentName()@NotNull Map<String,String>getPluginConfigMap(String key)Returns configuration map that is mapped to provided key.@Nullable StringgetPreviousVersionName()@NotNull com.google.common.collect.Multimap<String,Artifact>getVersionArtifacts()booleanisRollback()-
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-CustomEnvironmentConfigPluginfull plugin key- Returns:
- configuration map
-
-