Class BitbucketSCMSource

  • All Implemented Interfaces:
    ExtensionPoint, Describable<jenkins.scm.api.SCMSource>

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

      • 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 Detail

      • 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
      • 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.