Package com.atlassian.bamboo.upgrade
Interface UpgradeManager
- All Known Subinterfaces:
BootstrapUpgradeManager
- All Known Implementing Classes:
AbstractUpgradeManager,BootstrapUpgradeManagerImpl,UpgradeManagerImpl
public interface UpgradeManager
Manager to provide upgrade services
-
Method Details
-
needUpgrade
boolean needUpgrade()Determines whether we need to run the upgrade or not.- Returns:
-
whether the upgrade is needed
invalid reference
boolean
-
doUpgrade
Method to fire off the upgrade process- Parameters:
partOfSetup- - whether or not the upgrade is being run as part of the setup- Returns:
- collection of error messages, not empty collection denotes error occurred on upgrade
- Throws:
Exception
-
getBuildNumber
This gets the current build number- Returns:
- the current build number (stored in application config file)
-
getOldBuildNumber
String getOldBuildNumber()- Returns:
- build number before upgrade
-