Class BootstrapUpgradeHelper


  • public class BootstrapUpgradeHelper
    extends Object
    Helper for bootstrap validation and upgrade tasks
    • Constructor Detail

      • BootstrapUpgradeHelper

        @Inject
        public BootstrapUpgradeHelper​(com.atlassian.config.ApplicationConfiguration applicationConfiguration,
                                      com.atlassian.config.db.HibernateConfig hibernateConfig)
    • 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