Class BitbucketCloudEndpoint

    • Constructor Detail

      • BitbucketCloudEndpoint

        public BitbucketCloudEndpoint​(boolean manageHooks,
                                      @CheckForNull
                                      String credentialsId)
      • BitbucketCloudEndpoint

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public BitbucketCloudEndpoint​(boolean manageHooks,
                                      @CheckForNull
                                      String credentialsId,
                                      String endPointURL)
      • BitbucketCloudEndpoint

        @DataBoundConstructor
        public BitbucketCloudEndpoint​(boolean enableCache,
                                      int teamCacheDuration,
                                      int repositoriesCacheDuration,
                                      boolean manageHooks,
                                      @CheckForNull
                                      String credentialsId)
        Constructor.
        Parameters:
        enableCache - true if caching should be used to reduce requests to Bitbucket.
        teamCacheDuration - How long, in minutes, to cache the team response.
        repositoriesCacheDuration - How long, in minutes, to cache the repositories response.
        manageHooks - true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
        credentialsId - The IdCredentials.getId() of the credentials to use for auto-management of hooks.
    • Method Detail

      • isEnableCache

        public boolean isEnableCache()
      • getTeamCacheDuration

        public int getTeamCacheDuration()
      • getRepositoriesCacheDuration

        public int getRepositoriesCacheDuration()
      • getRepositoryUrl

        @NonNull
        public String getRepositoryUrl​(@NonNull
                                       String repoOwner,
                                       @NonNull
                                       String repository)
        The user facing URL of the specified repository.
        Specified by:
        getRepositoryUrl in class AbstractBitbucketEndpoint
        Parameters:
        repoOwner - the repository owner.
        repository - the repository.
        Returns:
        the user facing URL of the specified repository.