Package jenkins.scm.api
Class SCMHeadOrigin
java.lang.Object
jenkins.scm.api.SCMHeadOrigin
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SCMHeadOrigin.Default
,SCMHeadOrigin.Fork
Represents the origin of a
SCMHead
.
- For centralized version control systems, this will always be
DEFAULT
- For distributed version control systems, the distributed nature allows for other origins. It is expected that
SCMSource
implementations that supportSCMHead
instances coming from a different origin will solve the problem of describing the alternative origins by subclassingSCMHeadOrigin
appropriately (assumingSCMHeadOrigin.Fork
is not applicable). - For the centralized distributed version control systems such as GitHub, Bitbucket, etc there is
a standard concept of a named
SCMHeadOrigin.Fork
.
- Since:
- 2.2.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The default origin.static class
A named fork. -
Field Summary
-
Constructor Summary
-
Method Summary