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 Details

    • BootstrapUpgradeHelper

      @Inject public BootstrapUpgradeHelper(com.atlassian.config.ApplicationConfiguration applicationConfiguration, com.atlassian.config.db.HibernateConfig hibernateConfig)
  • Method Details

    • 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