Class BitbucketSCMSource

java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.SCMSource>

public class BitbucketSCMSource extends jenkins.scm.api.SCMSource
  • Constructor Details

    • BitbucketSCMSource

      @DataBoundConstructor public BitbucketSCMSource(@CheckForNull String id, @CheckForNull String credentialsId, @CheckForNull String sshCredentialsId, @CheckForNull List<jenkins.scm.api.trait.SCMSourceTrait> traits, @CheckForNull String projectName, @CheckForNull String repositoryName, @CheckForNull String serverId, @CheckForNull String mirrorName)
    • BitbucketSCMSource

      public BitbucketSCMSource(BitbucketSCMSource oldScm)
      Regenerate SCM by looking up new repo URLs etc.
      Parameters:
      oldScm - old scm to copy values from
  • Method Details

    • afterSave

      public void afterSave()
      Overrides:
      afterSave in class jenkins.scm.api.SCMSource
    • build

      public SCM build(jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision)
      Specified by:
      build in class jenkins.scm.api.SCMSource
    • getBitbucketSCMRepository

      public BitbucketSCMRepository getBitbucketSCMRepository()
    • getCredentials

      public Optional<com.cloudbees.plugins.credentials.Credentials> getCredentials()
    • getCredentialsId

      @CheckForNull public String getCredentialsId()
    • getMirrorName

      public String getMirrorName()
    • getProjectKey

      public String getProjectKey()
    • getProjectName

      public String getProjectName()
    • getRemote

      public String getRemote()
    • getRepositoryName

      public String getRepositoryName()
    • getRepositorySlug

      public String getRepositorySlug()
    • getServerId

      @CheckForNull public String getServerId()
    • getSshCredentialsId

      @CheckForNull public String getSshCredentialsId()
    • getTraits

      public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
      Overrides:
      getTraits in class jenkins.scm.api.SCMSource
    • isEventApplicable

      public boolean isEventApplicable(@CheckForNull jenkins.scm.api.SCMHeadEvent<?> event)
    • isValid

      public boolean isValid()
    • isWebhookRegistered

      public boolean isWebhookRegistered()
    • setWebhookRegistered

      public void setWebhookRegistered(boolean webhookRegistered)
    • createProbe

      protected jenkins.scm.api.SCMProbe createProbe(jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision) throws IOException
      Overrides:
      createProbe in class jenkins.scm.api.SCMSource
      Throws:
      IOException
    • readResolve

      protected Object readResolve()
      This method gets invoked by XStream after the BitbucketSCMSource object is unmarshalled.
    • retrieve

      protected void retrieve(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, @CheckForNull jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) throws IOException, InterruptedException
      Specified by:
      retrieve in class jenkins.scm.api.SCMSource
      Throws:
      IOException
      InterruptedException
    • retrieve

      protected jenkins.scm.api.SCMRevision retrieve(jenkins.scm.api.SCMHead head, TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieve in class jenkins.scm.api.SCMSource
      Throws:
      IOException
      InterruptedException
    • retrieveActions

      protected List<Action> retrieveActions(jenkins.scm.api.SCMSourceEvent event, TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieveActions in class jenkins.scm.api.SCMSource
      Throws:
      IOException
      InterruptedException
    • retrieveActions

      protected List<Action> retrieveActions(jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMHeadEvent event, TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieveActions in class jenkins.scm.api.SCMSource
      Throws:
      IOException
      InterruptedException