Package jenkins.scm.api
Class SCMHeadOrigin
- java.lang.Object
-
- jenkins.scm.api.SCMHeadOrigin
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SCMHeadOrigin.Default
,SCMHeadOrigin.Fork
@ExportedBean public abstract class SCMHeadOrigin extends Object implements Serializable
Represents the origin of aSCMHead
.- 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SCMHeadOrigin.Default
The default origin.static class
SCMHeadOrigin.Fork
A named fork.
-
Field Summary
Fields Modifier and Type Field Description static SCMHeadOrigin.Default
DEFAULT
The defaultSCMHeadOrigin
.
-
Constructor Summary
Constructors Constructor Description SCMHeadOrigin()
-
-
-
Field Detail
-
DEFAULT
public static final SCMHeadOrigin.Default DEFAULT
The defaultSCMHeadOrigin
.
-
-