Package org.jenkinsci.plugin.gitea
package org.jenkinsci.plugin.gitea
Jenkins SCM API implementation for Gitea
. The primary entry points for the implementation are:GiteaSCMSource- theSCMSourceimplementationGiteaSCMNavigator- theSCMNavigatorimplementation
SCMTrait based and accept the traits for
AbstractGitSCMSource as well as the Gitea specific traits:
BranchDiscoveryTraitForkPullRequestDiscoveryTraitOriginPullRequestDiscoveryTraitSSHCheckoutTraitWebhookRegistrationTrait
GiteaSCMNavigatorContextfor SCMNavigatorTraitsGiteaSCMNavigatorRequestfor SCMNavigatorTraitsGiteaSCMSourceBuilderfor SCMNavigatorTraitsGiteaSCMSourceContextfor SCMSourceTraitsGiteaSCMSourceRequestfor SCMSourceTraitsGiteaSCMBuilderfor SCMSourceTraits
SCMEvent subsystem.
Plugins wanting to listen for Gitea events and take custom actions based on the Gitea payloads should
listen for the relevant AbstractGiteaSCMHeadEvent subclass.
Adding support for new event types requires
- implementing the required payload type (extending from
GiteaEvent) - implementing the required
SCMEventsubclass - providing a
GiteaWebhookHandlerextension to wire it all together
-
ClassDescriptionAbstractGiteaSCMHeadEvent<E extends GiteaEvent>Base class for
SCMHeadEventfrom Gitea.AbstractGiteaSCMSourceEvent<E extends GiteaEvent>Base class forSCMHeadEventfrom Gitea.ADiscoverytrait for Gitea that will discover branches on the repository.Trusts branches from the origin repository.Out descriptor.Our descriptor.Filter that excludes branches that are also filed as a pull request.Filter that excludes branches that are not also filed as a pull request.Filter that excludes branches that are not also filed as a pull request or the main branch.OurSCMHeadfor Gitea branches.OurSCMRevisionforBranchSCMHead.ASelectiontrait that will restrict the discovery of repositories that have been archived.Exclude archived repositories filterADiscoverytrait for Gitea that will discover pull requests from forks of the repository.Our descriptor.AnSCMHeadAuthoritythat trusts contributors to the repository.Our descriptor.AnSCMHeadAuthoritythat trusts everyone.Our descriptor.AnSCMHeadAuthoritythat trusts nothing.Our descriptor.Metadata for the avatar of a Gitea Organization / user / repository.AGitRepositoryBrowserfor Gitea.Our descriptor.ASCMHeadEventfor aGiteaCreateEvent.Our handler.ASCMHeadEventfor aGiteaDeleteEvent.Our handler.Link to GiteaNotification of commit status information to Gitea.Sends notifications to Bitbucket on Run completed.Listener to catch jobs being added to the build queue.ASCMHeadEventfor aGiteaPullRequestEvent.Our handler.ASCMHeadEventfor aGiteaPushEvent.Our handler.ASCMHeadEventfor aGiteaPushEvent.Our handler.Builds aGitSCMforGiteaSCMSource.GiteaWebhookHandler<E extends jenkins.scm.api.SCMEvent<P>,P extends GiteaEvent> Deprecated.Generated localization support class.ADiscoverytrait for Gitea that will discover pull requests originating from a branch in the repository itself.ASCMHeadAuthoritythat trusts origin pull requestsOur descriptor.Category forSCMHeadinstances that implementReleaseSCMHead.ADiscoverytrait for Gitea that will discover tags on the repository.Our descriptor.Trusts tags from the origin repository.Out descriptor.OurSCMHeadfor Gitea tags.OurSCMRevisionforBranchSCMHead.Enumeration of the different webhook registration modes.ASCMSourceTraitforGiteaSCMSourcethat overrides theGiteaServerssettings for webhook registration.Our constructor.
MergeWithGitSCMExtension