public enum StashVersions extends Enum<StashVersions>
| Enum Constant and Description |
|---|
CODE_INSIGHTS
Bitbucket supports code insights behaviour and REST API (reports, code annotations) from this version onwards.
|
NOT_RETURN_USER_IN_HTTP_CLONE_URL
Stash doesn't return user as part of HTTP clone URL
|
RENAMED_TO_BITBUCKET
Stash product was renamed to Bitbucket at version 4.0.0
|
REPORTS_PR_MERGE_STATUS
Pull request(s) data retrieved with
StashClient.getPullRequestsByRepository(String, String, String, PullRequestDirection, PullRequestStateFilter,
PullRequestsOrder, long, long, AvatarRequest)
may include mergeResult object representing expected outcome of merge operation if one was issued. |
SMART_MIRRORING
Stash supports smart mirroring since version 4.2.0.
|
SUPPORTS_TASKS
tasks support was added in Stash 3.3.0
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
givenVersionIsOlder(String aBuildNumber)
tests given build number if it's older than defined by this enum
|
static StashVersions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StashVersions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StashVersions SUPPORTS_TASKS
public static final StashVersions RENAMED_TO_BITBUCKET
public static final StashVersions REPORTS_PR_MERGE_STATUS
StashClient.getPullRequestsByRepository(String, String, String, PullRequestDirection, PullRequestStateFilter,
PullRequestsOrder, long, long, AvatarRequest)
may include mergeResult object representing expected outcome of merge operation if one was issued.
Note that due to lazy merge work success of the merge can not be guaranteed.
Also, merge result is retrieved only if found in cache (at least as of Bitbucket 4.12.0). One way to trigger
the check and cache result is to call StashClient.canMergePullRequest(String, String, long).
public static final StashVersions SMART_MIRRORING
public static final StashVersions NOT_RETURN_USER_IN_HTTP_CLONE_URL
public static final StashVersions CODE_INSIGHTS
public static StashVersions[] values()
for (StashVersions c : StashVersions.values()) System.out.println(c);
public static StashVersions 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 nullpublic boolean givenVersionIsOlder(@Nonnull String aBuildNumber)
aBuildNumber - version number to examine, as retrieved with StashClient.getApplicationProperties()
in ApplicationProperties.getBuildNumber()Copyright © 2020 Atlassian. All rights reserved.