Class BitbucketServerApi.BitbucketServerApiFactory

java.lang.Object
io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketApiFactory
io.jenkins.blueocean.blueocean_bitbucket_pipeline.server.BitbucketServerApi.BitbucketServerApiFactory
All Implemented Interfaces:
ExtensionPoint
Enclosing class:
BitbucketServerApi

@Extension public static class BitbucketServerApi.BitbucketServerApiFactory extends BitbucketApiFactory
  • Constructor Details

    • BitbucketServerApiFactory

      public BitbucketServerApiFactory()
  • Method Details

    • handles

      public boolean handles(@NonNull String scmId)
      Specified by:
      handles in class BitbucketApiFactory
      Returns:
      true if this factory can handle this scmId
    • create

      @NonNull public BitbucketApi create(@NonNull String apiUrl, @NonNull com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
      Description copied from class: BitbucketApiFactory
      Create BitbucketApi instance. Before calling this method, clients must ensure BitbucketApiFactory.handles(String) is called first and returned true
      Specified by:
      create in class BitbucketApiFactory
      Parameters:
      apiUrl - API url (host url) of bitbucket server or cloud. e.g. https://mybitbucketserver.com/
      credentials - StandardUsernamePasswordCredentials
      Returns:
      BitbucketApi instance