Interface BitbucketDeploymentFactory
- All Known Implementing Classes:
BitbucketDeploymentFactoryImpl
public interface BitbucketDeploymentFactory
A factory for creating instances of
BitbucketDeployment from job information.- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateDeployment(Run<?, ?> run, BitbucketDeploymentEnvironment environment) Create a deployment from the providedRunandBitbucketDeploymentEnvironment.createDeployment(Run<?, ?> run, BitbucketDeploymentEnvironment environment, DeploymentState state)
-
Method Details
-
createDeployment
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
-