Interface ConfigFilesUpdater

  • All Known Implementing Classes:
    ConfigFilesUpdaterImpl

    public interface ConfigFilesUpdater
    Updates TeamCity configs
    • Method Detail

      • scheduleUpdateConfigTask

        @NotNull
        PersistTask scheduleUpdateConfigTask​(@NotNull
                                             ConfigGenerator generator,
                                             @NotNull
                                             ConfigUpdateCallback callback,
                                             @NotNull
                                             ConfigFilesUpdateOptions options,
                                             @NotNull
                                             ConfigCauseInfo configCauseInfo)
        Schedules execution of the given generator with disabled files changes observer, detects changed configs and reload affected projects. Makes a backup before updating projects, restores projects from backups in case of any errors (rolls back all the changes made by generator).
        Parameters:
        generator - configs generator to run
        callback - callback notified about stages of configs update
        options - options for updater
        configCauseInfo - contains information about cause of the config update
        Returns:
        task which can be used for waiting or cancelling of the operation