public enum ChangeRequestCheckoutStrategy extends Enum<ChangeRequestCheckoutStrategy>
Enum Constant and Description |
---|
HEAD
The revision to be checked out will be independent of the revision of the
ChangeRequestSCMHead.getTarget() . |
MERGE
The revision to be checked out will be the result of applying a merge algorithm between the the revision
of the change request and the revision of the
ChangeRequestSCMHead.getTarget() . |
Modifier and Type | Method and Description |
---|---|
static ChangeRequestCheckoutStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChangeRequestCheckoutStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChangeRequestCheckoutStrategy HEAD
ChangeRequestSCMHead.getTarget()
. For example, with GitHub, Bitbucket, etc this would correspond to
checking out the Head revision of the PR.public static final ChangeRequestCheckoutStrategy MERGE
ChangeRequestSCMHead.getTarget()
.
In the event that the merge operation cannot be completed then the checkout operation will fail.
It is assumed that the algorithm for merging is deterministic given the revision of the change request and
the revision of the ChangeRequestSCMHead.getTarget()
public static ChangeRequestCheckoutStrategy[] values()
for (ChangeRequestCheckoutStrategy c : ChangeRequestCheckoutStrategy.values()) System.out.println(c);
public static ChangeRequestCheckoutStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2022. All rights reserved.