Class GiteaSCMSource

java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
jenkins.plugins.git.AbstractGitSCMSource
org.jenkinsci.plugin.gitea.GiteaSCMSource
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.SCMSource>

public class GiteaSCMSource extends jenkins.plugins.git.AbstractGitSCMSource
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class jenkins.plugins.git.AbstractGitSCMSource

    jenkins.plugins.git.AbstractGitSCMSource.SCMRevisionImpl, jenkins.plugins.git.AbstractGitSCMSource.SpecificRevisionBuildChooser

    Nested classes/interfaces inherited from class jenkins.scm.api.SCMSource

    jenkins.scm.api.SCMSource.SourceByItem

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final VersionNumber
     
    static final VersionNumber
     

    Fields inherited from class jenkins.plugins.git.AbstractGitSCMSource

    DEFAULT_REMOTE_NAME, REF_SPEC_DEFAULT, REF_SPEC_REMOTE_NAME_PLACEHOLDER, REF_SPEC_REMOTE_NAME_PLACEHOLDER_STR

    Fields inherited from class jenkins.scm.api.SCMSource

    PRONOUN
  • Constructor Summary

    Constructors
    Constructor
    Description
    GiteaSCMSource(String serverUrl, String repoOwner, String repository)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    build(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision)
     
    protected jenkins.scm.api.SCMProbe
    createProbe(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision)
     
    com.cloudbees.plugins.credentials.common.StandardCredentials
     
     
     
     
     
     
     
    List<jenkins.scm.api.trait.SCMSourceTrait>
     
    jenkins.scm.api.SCMRevision
    getTrustedRevision(jenkins.scm.api.SCMRevision revision, TaskListener listener)
     
     
    protected jenkins.scm.api.SCMRevision
    retrieve(jenkins.scm.api.SCMHead head, TaskListener listener)
     
    protected void
    retrieve(jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener)
     
    protected List<Action>
    retrieveActions(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, TaskListener listener)
     
    protected List<Action>
    retrieveActions(jenkins.scm.api.SCMRevision revision, jenkins.scm.api.SCMHeadEvent event, TaskListener listener)
     
    protected List<Action>
    retrieveActions(jenkins.scm.api.SCMSourceEvent event, TaskListener listener)
     
    void
    setCredentialsId(String credentialsId)
     
    void
    setSshRemote(String sshRemote)
     
    void
    setTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits)
     

    Methods inherited from class jenkins.plugins.git.AbstractGitSCMSource

    decorate, getBrowser, getCacheDir, getCacheDir, getCacheEntry, getCacheLock, getCredentials, getExcludes, getExtensions, getGitTool, getIncludes, getRefSpecs, getRemoteConfigs, getRemoteName, isCategoryEnabled, isExcluded, isFIPSCompliantTLS, newBuilder, resolveGitTool, resolveGitTool, resolveGitTool, retrieve, retrieveRevisions

    Methods inherited from class jenkins.scm.api.SCMSource

    build, canProbe, checkInterrupt, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, hashCode, hasId, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveRevisions, setId, setOwner, toString, withId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TAG_SUPPORT_MINIMUM_VERSION

      public static final VersionNumber TAG_SUPPORT_MINIMUM_VERSION
    • READ_ACCESS_COLLABORATOR_LISTING_SUPPORT_MINIMUM_VERSION

      public static final VersionNumber READ_ACCESS_COLLABORATOR_LISTING_SUPPORT_MINIMUM_VERSION
  • Constructor Details

    • GiteaSCMSource

      @DataBoundConstructor public GiteaSCMSource(String serverUrl, String repoOwner, String repository)
  • Method Details

    • getServerUrl

      public String getServerUrl()
    • getRepoOwner

      public String getRepoOwner()
    • getRepository

      public String getRepository()
    • getSshRemote

      public String getSshRemote()
    • setSshRemote

      public void setSshRemote(String sshRemote)
    • getCredentialsId

      public String getCredentialsId()
      Specified by:
      getCredentialsId in class jenkins.plugins.git.AbstractGitSCMSource
    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(String credentialsId)
    • getRemote

      public String getRemote()
      Specified by:
      getRemote in class jenkins.plugins.git.AbstractGitSCMSource
    • getTraits

      @NonNull public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
      Overrides:
      getTraits in class jenkins.plugins.git.AbstractGitSCMSource
    • setTraits

      @DataBoundSetter public void setTraits(List<jenkins.scm.api.trait.SCMSourceTrait> traits)
      Overrides:
      setTraits in class jenkins.scm.api.SCMSource
    • retrieve

      protected jenkins.scm.api.SCMRevision retrieve(@NonNull jenkins.scm.api.SCMHead head, @NonNull TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieve in class jenkins.plugins.git.AbstractGitSCMSource
      Throws:
      IOException
      InterruptedException
    • retrieve

      protected void retrieve(jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, @NonNull TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieve in class jenkins.plugins.git.AbstractGitSCMSource
      Throws:
      IOException
      InterruptedException
    • retrieveActions

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

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

      @NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMRevision revision, jenkins.scm.api.SCMHeadEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
      Overrides:
      retrieveActions in class jenkins.scm.api.SCMSource
      Throws:
      IOException
      InterruptedException
    • getTrustedRevision

      @NonNull public jenkins.scm.api.SCMRevision getTrustedRevision(@NonNull jenkins.scm.api.SCMRevision revision, @NonNull TaskListener listener) throws IOException, InterruptedException
      Overrides:
      getTrustedRevision in class jenkins.scm.api.SCMSource
      Throws:
      IOException
      InterruptedException
    • build

      @NonNull public SCM build(@NonNull jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision)
      Overrides:
      build in class jenkins.plugins.git.AbstractGitSCMSource
    • createProbe

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

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

      public Gitea gitea() throws AbortException
      Throws:
      AbortException
    • credentials

      public com.cloudbees.plugins.credentials.common.StandardCredentials credentials()