Class DeploymentPosterImpl
java.lang.Object
hudson.model.listeners.SCMListener
com.atlassian.bitbucket.jenkins.internal.deployments.DeploymentPosterImpl
- All Implemented Interfaces:
DeploymentPoster,ExtensionPoint
@Extension
@Singleton
public class DeploymentPosterImpl
extends SCMListener
implements DeploymentPoster
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentPosterImpl(BitbucketClientFactoryProvider bitbucketClientFactoryProvider, BitbucketDeploymentFactory bitbucketDeploymentFactory, JenkinsToBitbucketCredentials jenkinsToBitbucketCredentials, BitbucketPluginConfiguration pluginConfiguration, BitbucketSCMRepositoryHelper scmRunHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoidonCheckout(Run<?, ?> build, SCM scm, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState pollingBaseline) voidpostDeployment(BitbucketSCMRepository repository, String revisionSha, BitbucketDeployment deployment, Run<?, ?> run, TaskListener taskListener) Send a notification of deployment to Bitbucket Server on the provided commit.Methods inherited from class hudson.model.listeners.SCMListener
all, onChangeLogParsed, onChangeLogParsed, register, unregister
-
Field Details
-
LOGGER
-
-
Constructor Details
-
DeploymentPosterImpl
public DeploymentPosterImpl() -
DeploymentPosterImpl
@Inject public DeploymentPosterImpl(BitbucketClientFactoryProvider bitbucketClientFactoryProvider, BitbucketDeploymentFactory bitbucketDeploymentFactory, JenkinsToBitbucketCredentials jenkinsToBitbucketCredentials, BitbucketPluginConfiguration pluginConfiguration, BitbucketSCMRepositoryHelper scmRunHelper)
-
-
Method Details
-
onCheckout
public void onCheckout(Run<?, ?> build, SCM scm, FilePath workspace, TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState pollingBaseline) - Overrides:
onCheckoutin classSCMListener
-
postDeployment
public void postDeployment(BitbucketSCMRepository repository, String revisionSha, BitbucketDeployment deployment, Run<?, ?> run, TaskListener taskListener) Description copied from interface:DeploymentPosterSend a notification of deployment to Bitbucket Server on the provided commit.- Specified by:
postDeploymentin interfaceDeploymentPoster- Parameters:
repository- the repository that was deployedrevisionSha- the commit that was deployeddeployment- the deployment informationrun- the run that caused the deployment (used to get the credentials to post the notification)taskListener- the task listener for the run, in order to write messages to the run's console
-