public class BitbucketDeploymentFactoryImpl extends Object implements BitbucketDeploymentFactory
Constructor and Description |
---|
BitbucketDeploymentFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
BitbucketDeployment |
createDeployment(Run<?,?> run,
BitbucketDeploymentEnvironment environment)
Create a deployment from the provided
Run and BitbucketDeploymentEnvironment . |
BitbucketDeployment |
createDeployment(Run<?,?> run,
BitbucketDeploymentEnvironment environment,
DeploymentState state)
|
public BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment)
BitbucketDeploymentFactory
Run
and BitbucketDeploymentEnvironment
.
The value of BitbucketDeployment.getState()
will be populated based on the Run.getResult()
.createDeployment
in interface BitbucketDeploymentFactory
run
- the run that deployed to the environmentenvironment
- the environment that was deployed toBitbucketDeployment
matching the provided informationpublic BitbucketDeployment createDeployment(Run<?,?> run, BitbucketDeploymentEnvironment environment, @CheckForNull DeploymentState state)
BitbucketDeploymentFactory
Run
, BitbucketDeploymentEnvironment
and
DeploymentState
.
The value of Run.getResult()
will be ignored and the BitbucketDeployment.getState()
will be
populated based on the provided state
createDeployment
in interface BitbucketDeploymentFactory
run
- the run that deployed to the environmentenvironment
- the environment that was deployed tostate
- the result of the deploymentBitbucketDeployment
matching the provided informationCopyright © 2016–2022. All rights reserved.