Interface BitbucketDeploymentFactory
-
- All Known Implementing Classes:
BitbucketDeploymentFactoryImpl
public interface BitbucketDeploymentFactory
A factory for creating instances ofBitbucketDeployment
from job information.- Since:
- 3.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitbucketDeployment
createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment)
Create a deployment from the providedRun
andBitbucketDeploymentEnvironment
.BitbucketDeployment
createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment, DeploymentState state)
-
-
-
Method Detail
-
createDeployment
BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment)
Create a deployment from the providedRun
andBitbucketDeploymentEnvironment
. 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
BitbucketDeployment
matching the provided information
-
createDeployment
BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment, @CheckForNull DeploymentState state)
Create a deployment from the providedRun
,BitbucketDeploymentEnvironment
andDeploymentState
. 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
BitbucketDeployment
matching the provided information
-
-