@Extension @Singleton public class DeploymentPosterImpl extends SCMListener implements DeploymentPoster
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
DeploymentPosterImpl() |
DeploymentPosterImpl(BitbucketClientFactoryProvider bitbucketClientFactoryProvider,
BitbucketDeploymentFactory bitbucketDeploymentFactory,
JenkinsToBitbucketCredentials jenkinsToBitbucketCredentials,
BitbucketPluginConfiguration pluginConfiguration,
BitbucketSCMRepositoryHelper scmRunHelper) |
Modifier and Type | Method and Description |
---|---|
void |
onCheckout(Run<?,?> build,
SCM scm,
FilePath workspace,
TaskListener listener,
File changelogFile,
SCMRevisionState pollingBaseline) |
void |
postDeployment(BitbucketSCMRepository repository,
String revisionSha,
BitbucketDeployment deployment,
Run<?,?> run,
TaskListener taskListener)
Send a notification of deployment to Bitbucket Server on the provided commit.
|
all, onChangeLogParsed, onChangeLogParsed, register, unregister
protected static final Logger LOGGER
public DeploymentPosterImpl()
@Inject public DeploymentPosterImpl(BitbucketClientFactoryProvider bitbucketClientFactoryProvider, BitbucketDeploymentFactory bitbucketDeploymentFactory, JenkinsToBitbucketCredentials jenkinsToBitbucketCredentials, BitbucketPluginConfiguration pluginConfiguration, BitbucketSCMRepositoryHelper scmRunHelper)
public void onCheckout(Run<?,?> build, SCM scm, FilePath workspace, TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState pollingBaseline)
onCheckout
in class SCMListener
public void postDeployment(BitbucketSCMRepository repository, String revisionSha, BitbucketDeployment deployment, Run<?,?> run, TaskListener taskListener)
DeploymentPoster
postDeployment
in interface DeploymentPoster
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 consoleCopyright © 2016–2022. All rights reserved.