java.lang.Object
cd.go.contrib.plugins.configrepo.groovy.dsl.connection.Bitbucket
All Implemented Interfaces:
ConnectionConfig, KeyVal.Mixin, UtilsMixin
Direct Known Subclasses:
Attributes.BitbucketPR

public class Bitbucket extends Object implements ConnectionConfig
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
    @NotBlank(message="`bitbucket {}` block requires `fullRepoName` (string), set with `fullRepoName = \'workspace/repo\'`") String
    This is the `{workspace_slug}/{repo_slug}` representing the git repository hosted on BitBucket
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    An identifier representing this ConnectionConfig.
    @jakarta.validation.constraints.AssertTrue(message="When configuring authentication in a `bitbucket {}` block, you must set both `apiUser` and `apiPass` (this can be either an auth token or user password)") boolean
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.KeyVal.Mixin

    lookup, lookup

    Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.UtilsMixin

    sanitizeName
  • Field Details

    • fullRepoName

      @NotBlank(message="`bitbucket {}` block requires `fullRepoName` (string), set with `fullRepoName = \'workspace/repo\'`") public @NotBlank(message="`bitbucket {}` block requires `fullRepoName` (string), set with `fullRepoName = \'workspace/repo\'`") String fullRepoName
      This is the `{workspace_slug}/{repo_slug}` representing the git repository hosted on BitBucket
    • apiUser

      public String apiUser
    • apiPass

      public String apiPass
  • Constructor Details

    • Bitbucket

      public Bitbucket()
    • Bitbucket

      public Bitbucket(Consumer<Bitbucket> config)
  • Method Details

    • type

      public Type type()
      Specified by:
      type in interface ConnectionConfig
    • identifier

      public String identifier()
      Description copied from interface: ConnectionConfig
      An identifier representing this ConnectionConfig. This should be deterministically calculated from the configured fields with the exception of authentication-related fields. Another way to put this is that two ConnectionConfig instances should have equal identifiers if all non-authentication connection details are the same. Identifiers should not be equal if any non-authentication connection details are different.
      Specified by:
      identifier in interface ConnectionConfig
      Returns:
      a String identifier.
    • isValidAuth

      @AssertTrue(message="When configuring authentication in a `bitbucket {}` block, you must set both `apiUser` and `apiPass` (this can be either an auth token or user password)") public @jakarta.validation.constraints.AssertTrue(message="When configuring authentication in a `bitbucket {}` block, you must set both `apiUser` and `apiPass` (this can be either an auth token or user password)") boolean isValidAuth()