@PublicApi
public interface BuildUtilsInfo
Modifier and Type | Method and Description |
---|---|
int |
getApplicationBuildNumber()
Gets the build number of this JIRA install.
|
String |
getApplinksVersion()
Returns the version of AppLinks that JIRA ships with.
|
String |
getBuildInformation()
Gets a build information summary as a String.
|
String |
getBuildPartnerName()
Gets the partner name of this JIRA build
|
String |
getBuildProperty(String key)
Returns the value of the build property with the given key.
|
String |
getCommitId()
Returns the id of the SCM commit that was used to make this build of JIRA.
|
String |
getCrowdOsgiVersion() |
Date |
getCurrentBuildDate()
Gets the date this version of JIRA was built on.
|
String |
getCurrentBuildNumber()
Gets the current build number of JIRA.
|
int |
getDatabaseBuildNumber()
Gets the build number of the database that this JIRA instance points to.
|
String |
getDocVersion()
Return the version used for JIRA documentation.
|
String |
getGuavaOsgiVersion() |
String |
getMinimumUpgradableBuildNumber()
Gets the minimal build number that JIRA can upgrade from
|
String |
getMinimumUpgradableVersion()
Get the minimum version of JIRA that can be upgraded to this instance version.
|
String |
getSalVersion()
Returns the version of Atlassian SAL that JIRA exports into OSGI-land.
|
String |
getSvnRevision()
Deprecated.
Use
getCommitId() instead. Since v5.1. |
Collection<Locale> |
getUnavailableLocales() |
String |
getVersion()
Gets the current version of JIRA
|
int[] |
getVersionNumbers()
Gets the numerical components of the version.
|
boolean |
isBeta()
Returns whether the current version is a beta (i.e.
|
boolean |
isEap()
Indicates whether the current version is an Early Access Program (EAP) release.
|
boolean |
isFinal()
Indicates whether the current version is a final (GA) release.
|
boolean |
isMilestone()
Returns whether the current version is a milestone (i.e.
|
boolean |
isRc()
Returns whether the current version is a release candidate (i.e.
|
boolean |
isSnapshot()
Returns whether the current version is a snapshot (i.e.
|
String getVersion()
String getDocVersion()
This is the version that JIRA uses when generating links to its externally hosted documentation.
int[] getVersionNumbers()
"5.0"
gives [5, 0, 0]"5.0.1"
gives [5, 0, 1]"5.0-beta1"
gives [5, 0, 0]"5.0.1-SNAPSHOT"
gives [5, 0, 1]The returned array is guaranteed to have at least 3 elements. Any non-numeric suffix in getVersion() is ignored.
A simple way to use this information is with Guava's Ints.lexicographicalComparator()
:
int[] v510 = {5, 1, 0}; if (Ints.lexicographicalComparator().compare(buildUtils.getVersionNumbers(), v510) >= 0 ) { ...
String getCurrentBuildNumber()
This is the same value as getApplicationBuildNumber()
except it is returned as a String.
getDatabaseBuildNumber()
,
getApplicationBuildNumber()
int getApplicationBuildNumber()
That is, the build number of the currently running installation files. The DB also stores a build number.
getDatabaseBuildNumber()
int getDatabaseBuildNumber()
Under normal circumstances this will be the same as the build number of the JIRA installation. However, when you first upgrade a JIRA database or import data exported from an older JIRA, the existing database will start on the previous build number. JIRA will then run "Upgrade Tasks" to update the data in the DB.
getCurrentBuildNumber()
String getMinimumUpgradableBuildNumber()
@Nullable Date getCurrentBuildDate()
null
if it couldn't be parsedString getBuildPartnerName()
String getBuildInformation()
@Deprecated String getSvnRevision()
getCommitId()
instead. Since v5.1.String getCommitId()
String getMinimumUpgradableVersion()
Collection<Locale> getUnavailableLocales()
String getSalVersion()
String getApplinksVersion()
String getGuavaOsgiVersion()
String getCrowdOsgiVersion()
@Nullable String getBuildProperty(String key)
key
- the key for which to retrieve the valuenull
if the key is unknownboolean isBeta()
boolean isEap()
boolean isFinal()
boolean isRc()
boolean isSnapshot()
boolean isMilestone()
Copyright © 2002-2019 Atlassian. All Rights Reserved.