public class DeploymentContextImpl extends Object implements DeploymentContext
Constructor and Description |
---|
DeploymentContextImpl(@NotNull DeploymentProject deploymentProject,
@NotNull DeploymentResult deploymentResult,
@NotNull List<TaskDefinition> taskDefinitions,
@NotNull Map<String,String> artifactHandlerConfiguration,
@NotNull VariableContext variableContext,
Map<Long,PlanRepositoryDefinition> planRepositoryDefinitionMap,
com.google.common.collect.Multimap<String,Artifact> versionArtifacts,
@Nullable DeploymentVersion previousVersion,
@NotNull Iterable<CredentialsData> sharedCredentials,
@NotNull Map<PlanKey,ChainStorageTag> necessaryStorageTags,
@NotNull Map<String,Map<String,String>> pluginConfigMap,
@NotNull DockerPipelineConfiguration dockerPipelineConfiguration,
@NotNull CommonArtifactContext commonArtifactContext,
@NotNull boolean isVerboseLoggingOn) |
public DeploymentContextImpl(@NotNull @NotNull DeploymentProject deploymentProject, @NotNull @NotNull DeploymentResult deploymentResult, @NotNull @NotNull List<TaskDefinition> taskDefinitions, @NotNull @NotNull Map<String,String> artifactHandlerConfiguration, @NotNull @NotNull VariableContext variableContext, Map<Long,PlanRepositoryDefinition> planRepositoryDefinitionMap, com.google.common.collect.Multimap<String,Artifact> versionArtifacts, @Nullable @Nullable DeploymentVersion previousVersion, @NotNull @NotNull Iterable<CredentialsData> sharedCredentials, @NotNull @NotNull Map<PlanKey,ChainStorageTag> necessaryStorageTags, @NotNull @NotNull Map<String,Map<String,String>> pluginConfigMap, @NotNull @NotNull DockerPipelineConfiguration dockerPipelineConfiguration, @NotNull @NotNull CommonArtifactContext commonArtifactContext, @NotNull @NotNull boolean isVerboseLoggingOn)
@NotNull public @NotNull BuildKey getBuildKey()
getBuildKey
in interface CommonContext
@NotNull public @NotNull List<PlanRepositoryDefinition> getVcsRepositories()
getVcsRepositories
in interface CommonContext
@NotNull public @NotNull Map<Long,PlanRepositoryDefinition> getVcsRepositoryMap()
getVcsRepositoryMap
in interface CommonContext
public long getDeploymentResultId()
getDeploymentResultId
in interface DeploymentContext
public long getEnvironmentId()
getEnvironmentId
in interface DeploymentContext
public Long getEntityGroupId()
CommonContext
getEntityGroupId
in interface CommonContext
public long getDeploymentProjectId()
getDeploymentProjectId
in interface DeploymentContext
public long getEntityId()
getEntityId
in interface CommonContext
@NotNull public @NotNull Key getEntityKey()
getEntityKey
in interface CommonContext
@NotNull public @NotNull ResultKey getResultKey()
getResultKey
in interface CommonContext
public String getDisplayName()
CommonContext
getDisplayName
in interface CommonContext
public CurrentResult getCurrentResult()
getCurrentResult
in interface CommonContext
@NotNull public @NotNull DeploymentVersion getDeploymentVersion()
getDeploymentVersion
in interface DeploymentContext
@NotNull public @NotNull ErrorCollection getErrorCollection()
CommonContext
getErrorCollection
in interface CommonContext
@NotNull public @NotNull List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
CommonContext
getRuntimeTaskDefinitions
in interface CommonContext
List
of RuntimeTaskDefinition
s@NotNull public @NotNull VariableContext getVariableContext()
getVariableContext
in interface CommonContext
@NotNull public @NotNull Map<String,String> getArtifactHandlerConfiguration()
getArtifactHandlerConfiguration
in interface DeploymentContext
@NotNull public @NotNull TriggerReason getTriggerReason()
CommonContext
getTriggerReason
in interface CommonContext
@NotNull public @NotNull com.google.common.collect.Multimap<String,Artifact> getVersionArtifacts()
getVersionArtifacts
in interface DeploymentContext
@NotNull public @NotNull String getDeploymentProjectName()
getDeploymentProjectName
in interface DeploymentContext
@NotNull public @NotNull String getEnvironmentName()
getEnvironmentName
in interface DeploymentContext
public boolean isRollback()
isRollback
in interface DeploymentContext
@Nullable public @Nullable String getPreviousVersionName()
getPreviousVersionName
in interface DeploymentContext
@NotNull public @NotNull Map<String,String> getPluginConfigMap(String key)
DeploymentContext
getPluginConfigMap
in interface DeploymentContext
key
- CustomEnvironmentConfigPlugin
full plugin key@NotNull public @NotNull DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface CommonContext
@NotNull public @NotNull Iterable<CredentialsData> getSharedCredentials()
getSharedCredentials
in interface CommonContext
@NotNull public @NotNull Map<PlanKey,ChainStorageTag> getChainStorageTags()
getChainStorageTags
in interface CommonContext
@NotNull public @NotNull CommonArtifactContext getArtifactContext()
getArtifactContext
in interface CommonContext
public boolean isVerboseLoggingOn()
CommonContext
isVerboseLoggingOn
in interface CommonContext
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.