Interface BitbucketDeploymentFactory
-
- All Known Implementing Classes:
BitbucketDeploymentFactoryImpl
public interface BitbucketDeploymentFactoryA factory for creating instances ofBitbucketDeploymentfrom job information.- Since:
- 3.1.0
-
-
Method Summary
All Methods Instance Methods Abstract 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
BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment)
Create a deployment from the providedRunandBitbucketDeploymentEnvironment. The value ofBitbucketDeployment.getState()will be populated based on theRun.getResult().- Parameters:
run- the run that deployed to the environmentenvironment- the environment that was deployed to- Returns:
- a
BitbucketDeploymentmatching the provided information
-
createDeployment
BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment, @CheckForNull DeploymentState state)
Create a deployment from the providedRun,BitbucketDeploymentEnvironmentandDeploymentState. The value ofRun.getResult()will be ignored and theBitbucketDeployment.getState()will be populated based on the providedstate- 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
-
-