Interface ServerSettings

  • All Known Implementing Classes:
    ServerSettingsImpl

    public interface ServerSettings
    Server wide settings.
    • Method Detail

      • isPerProjectPermissionsEnabled

        boolean isPerProjectPermissionsEnabled()
        Returns:
        true if per project permissions are enabled
      • isEmailVerificationEnabled

        boolean isEmailVerificationEnabled()
        If email verification is enabled, email address becomes mandatory on user registration page as well as on user profile page. In this mode TeamCity also shows warning on non-verified email to the user and provides controls to verify it.

        Note: in this mode email will continue to be optional on create user and edit user page in administration area.

        Returns:
        true if email verification is enabled.
      • isDomainIsolationProtectionEnabled

        boolean isDomainIsolationProtectionEnabled()
        Whether or not to enable domain isolation protection
        Returns:
        boolean
      • getRootUrl

        @NotNull
        String getRootUrl()
        Returns:
        root url of the server, used mainly for notifications
      • getDefaultModificationCheckInterval

        int getDefaultModificationCheckInterval()
        Returns:
        default checking for VCS changes interval (seconds)
      • getDefaultQuietPeriod

        int getDefaultQuietPeriod()
        Returns:
        default value for VCS trigger quiet period (seconds)
      • isMinimumCheckIntervalEnforced

        boolean isMinimumCheckIntervalEnforced()
        Returns:
        true if default modification check interval should be enforced as a minimum value
      • getMaximumAllowedArtifactSize

        long getMaximumAllowedArtifactSize()
        Returns:
        maximum allowed size for uploaded artifact
      • getMaximumAllowedArtifactsNumber

        long getMaximumAllowedArtifactsNumber()
        Returns:
        maximum allowed number of uploaded artifacts
      • getDefaultExecutionTimeout

        int getDefaultExecutionTimeout()
        Returns:
        default build execution timeout in minutes or 0 if there is no default timeout.
      • getServerUUID

        @Nullable
        String getServerUUID()
        Returns:
        unique identifier of the server. Will be null until server settings are read - after Spring context is loaded. Should be used after ServerListener.serverStartup()
      • getArtifactDirectories

        @NotNull
        List<File> getArtifactDirectories()
        Returns effective artifact directories. The list always has at least one element. The first element of the list points to an artifacts directory where new artifacts must be stored. The list of returned directories can be smaller than the actual number of configured artifact paths (see getArtifactDirectoriesPaths() because not all of the configured paths are applicable to the current platform.
      • getArtifactDirectoriesPaths

        @NotNull
        String getArtifactDirectoriesPaths()
        Returns:
        new line delimited artifact directories paths
        Since:
        2018.1
      • getArtifactsRootUrl

        @Nullable
        String getArtifactsRootUrl()