Class BitbucketDeploymentFactoryImpl
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.deployments.BitbucketDeploymentFactoryImpl
- All Implemented Interfaces:
BitbucketDeploymentFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateDeployment
(Run<?, ?> run, BitbucketDeploymentEnvironment environment) Create a deployment from the providedRun
andBitbucketDeploymentEnvironment
.createDeployment
(Run<?, ?> run, BitbucketDeploymentEnvironment environment, DeploymentState state)
-
Constructor Details
-
BitbucketDeploymentFactoryImpl
public BitbucketDeploymentFactoryImpl()
-
-
Method Details
-
createDeployment
public BitbucketDeployment createDeployment(Run<?, ?> run, BitbucketDeploymentEnvironment environment) Description copied from interface:BitbucketDeploymentFactory
Create a deployment from the providedRun
andBitbucketDeploymentEnvironment
. The value ofBitbucketDeployment.getState()
will be populated based on theRun.getResult()
.- Specified by:
createDeployment
in interfaceBitbucketDeploymentFactory
- Parameters:
run
- the run that deployed to the environmentenvironment
- the environment that was deployed to- Returns:
- a
BitbucketDeployment
matching the provided information
-
createDeployment
public BitbucketDeployment createDeployment(Run<?, ?> run, BitbucketDeploymentEnvironment environment, @CheckForNull DeploymentState state) Description copied from interface:BitbucketDeploymentFactory
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
- Specified by:
createDeployment
in interfaceBitbucketDeploymentFactory
- 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
-