Class BootstrapUpgradeHelper
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.utils.impl.BootstrapUpgradeHelper
-
public class BootstrapUpgradeHelper extends Object
Helper for bootstrap validation and upgrade tasks
-
-
Constructor Summary
Constructors Constructor Description BootstrapUpgradeHelper(com.atlassian.config.ApplicationConfiguration applicationConfiguration, com.atlassian.config.db.HibernateConfig hibernateConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
getBuildNumberFromLocalHomeDirectory()
Connection
getDatabaseConnection()
-
-
-
Method Detail
-
getBuildNumberFromLocalHomeDirectory
@NotNull public @NotNull String getBuildNumberFromLocalHomeDirectory()
- Returns:
- build number stored in Bamboo home directory
-
getDatabaseConnection
public Connection getDatabaseConnection() throws org.hibernate.HibernateException, SQLException
- Returns:
- DB connection to be used in bootstrap validation and upgrade tasks
- Throws:
org.hibernate.HibernateException
SQLException
-
-