Class BitbucketDeploymentFactoryImpl
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.deployments.BitbucketDeploymentFactoryImpl
-
- All Implemented Interfaces:
BitbucketDeploymentFactory
public class BitbucketDeploymentFactoryImpl extends Object implements BitbucketDeploymentFactory
-
-
Constructor Summary
Constructors Constructor Description BitbucketDeploymentFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
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
-
-