Class BitbucketDeploymentFactoryImpl
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.deployments.BitbucketDeploymentFactoryImpl
 
 
- 
- All Implemented Interfaces:
 BitbucketDeploymentFactory
public class BitbucketDeploymentFactoryImpl extends Object implements BitbucketDeploymentFactory
 
- 
- 
Constructor Summary
Constructors Constructor Description BitbucketDeploymentFactoryImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketDeploymentcreateDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment)Create a deployment from the providedRunandBitbucketDeploymentEnvironment.BitbucketDeploymentcreateDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment, DeploymentState state) 
 - 
 
- 
- 
Method Detail
- 
createDeployment
public BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment)
Description copied from interface:BitbucketDeploymentFactoryCreate a deployment from the providedRunandBitbucketDeploymentEnvironment. The value ofBitbucketDeployment.getState()will be populated based on theRun.getResult().- Specified by:
 createDeploymentin interfaceBitbucketDeploymentFactory- Parameters:
 run- the run that deployed to the environmentenvironment- the environment that was deployed to- Returns:
 - a 
BitbucketDeploymentmatching the provided information 
 
- 
createDeployment
public BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment, @CheckForNull DeploymentState state)
Description copied from interface:BitbucketDeploymentFactoryCreate a deployment from the providedRun,BitbucketDeploymentEnvironmentandDeploymentState. The value ofRun.getResult()will be ignored and theBitbucketDeployment.getState()will be populated based on the providedstate- Specified by:
 createDeploymentin interfaceBitbucketDeploymentFactory- Parameters:
 run- the run that deployed to the environmentenvironment- the environment that was deployed tostate- the result of the deployment- Returns:
 - a 
BitbucketDeploymentmatching the provided information 
 
 - 
 
 -