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