com.atlassian.bamboo.deployments.execution
Class DeploymentContextImpl
java.lang.Object
com.atlassian.bamboo.deployments.execution.DeploymentContextImpl
- All Implemented Interfaces:
- DeploymentContext, CommonContext, Serializable
public class DeploymentContextImpl
- extends Object
- implements DeploymentContext
- See Also:
- Serialized Form
Constructor Summary |
DeploymentContextImpl(DeploymentProject deploymentProject,
DeploymentResult deploymentResult,
List<TaskDefinition> taskDefinitions,
Map<String,String> artifactHandlerConfiguration,
VariableContext variableContext,
Map<Long,RepositoryDefinition> repositoryDefinitionMap,
Map<String,Artifact> versionArtifacts,
DeploymentVersion previousVersion,
Iterable<CredentialsData> sharedCredentials)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeploymentContextImpl
public DeploymentContextImpl(@Nullable
DeploymentProject deploymentProject,
@NotNull
DeploymentResult deploymentResult,
@NotNull
List<TaskDefinition> taskDefinitions,
@NotNull
Map<String,String> artifactHandlerConfiguration,
@NotNull
VariableContext variableContext,
Map<Long,RepositoryDefinition> repositoryDefinitionMap,
Map<String,Artifact> versionArtifacts,
@Nullable
DeploymentVersion previousVersion,
@NotNull
Iterable<CredentialsData> sharedCredentials)
getRepositoryDefinitionMap
@NotNull
public Map<Long,RepositoryDefinition> getRepositoryDefinitionMap()
- Specified by:
getRepositoryDefinitionMap
in interface CommonContext
getRepositoryDefinitions
@NotNull
public List<RepositoryDefinition> getRepositoryDefinitions()
- Specified by:
getRepositoryDefinitions
in interface CommonContext
getDeploymentResultId
public long getDeploymentResultId()
- Specified by:
getDeploymentResultId
in interface DeploymentContext
getEnvironmentId
public long getEnvironmentId()
- Specified by:
getEnvironmentId
in interface DeploymentContext
getEntityId
public long getEntityId()
- Specified by:
getEntityId
in interface CommonContext
getEntityKey
@NotNull
public Key getEntityKey()
- Specified by:
getEntityKey
in interface CommonContext
getResultKey
@NotNull
public ResultKey getResultKey()
- Specified by:
getResultKey
in interface CommonContext
getDisplayName
public String getDisplayName()
- Description copied from interface:
CommonContext
- A human friendly description of what is being built.
- Specified by:
getDisplayName
in interface CommonContext
- Returns:
getCurrentResult
public CurrentResult getCurrentResult()
- Specified by:
getCurrentResult
in interface CommonContext
getDeploymentVersion
@NotNull
public DeploymentVersion getDeploymentVersion()
- Specified by:
getDeploymentVersion
in interface DeploymentContext
getErrorCollection
@NotNull
public ErrorCollection getErrorCollection()
- Description copied from interface:
CommonContext
- Any errors associated with the build
- Specified by:
getErrorCollection
in interface CommonContext
getTaskDefinitions
@NotNull
public List<TaskDefinition> getTaskDefinitions()
- Description copied from interface:
CommonContext
- All tasks defined for this build. Contains both regular tasks and finalising tasks.
- Specified by:
getTaskDefinitions
in interface CommonContext
- Returns:
- A
List
of TaskDefinition
s
getRuntimeTaskDefinitions
@NotNull
public List<RuntimeTaskDefinition> getRuntimeTaskDefinitions()
- Description copied from interface:
CommonContext
- All tasks defined for this build. Contains both regular tasks and finalising tasks.
- Specified by:
getRuntimeTaskDefinitions
in interface CommonContext
- Returns:
- A
List
of RuntimeTaskDefinition
s
getRuntimeTaskContext
@NotNull
public RuntimeTaskContext getRuntimeTaskContext()
- Description copied from interface:
CommonContext
- Runtime context for the tasks executed for given build context This context is set by pluggable
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition, CommonContext)
- Specified by:
getRuntimeTaskContext
in interface CommonContext
- Returns:
getVariableContext
@NotNull
public VariableContext getVariableContext()
- Specified by:
getVariableContext
in interface CommonContext
getArtifactHandlerConfiguration
@NotNull
public Map<String,String> getArtifactHandlerConfiguration()
- Specified by:
getArtifactHandlerConfiguration
in interface DeploymentContext
getTriggerReason
@NotNull
public TriggerReason getTriggerReason()
- Description copied from interface:
CommonContext
- The reason this build was triggered
- Specified by:
getTriggerReason
in interface CommonContext
- Returns:
- triggerReason
getVersionArtifacts
@NotNull
public Map<String,Artifact> getVersionArtifacts()
- Specified by:
getVersionArtifacts
in interface DeploymentContext
getDeploymentProjectName
@NotNull
public String getDeploymentProjectName()
- Specified by:
getDeploymentProjectName
in interface DeploymentContext
getEnvironmentName
@NotNull
public String getEnvironmentName()
- Specified by:
getEnvironmentName
in interface DeploymentContext
isRollback
public boolean isRollback()
- Specified by:
isRollback
in interface DeploymentContext
getPreviousVersionName
@Nullable
public String getPreviousVersionName()
- Specified by:
getPreviousVersionName
in interface DeploymentContext
getSharedCredentials
@NotNull
public Iterable<CredentialsData> getSharedCredentials()
- Specified by:
getSharedCredentials
in interface CommonContext
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.