Horde: Add a stream setting to allow using virtual streams for replication.

#preflight none

[CL 21451090 by Ben Marsh in ue5-main branch]
This commit is contained in:
Ben Marsh
2022-08-18 18:15:53 -04:00
parent f47639d66f
commit 8a952bb76d
2 changed files with 6 additions and 1 deletions

View File

@@ -1036,7 +1036,7 @@ namespace Horde.Build.Perforce
newClient.Description = "Created to mirror Perforce content to Horde Storage";
newClient.Owner = perforce.Settings.UserName;
newClient.Host = serverInfo.ClientHost;
newClient.Stream = stream.Name;
newClient.Stream = stream.Config.ReplicationStream ?? stream.Name;
await perforce.CreateClientAsync(newClient);
_logger.LogInformation("Created client {ClientName} for {StreamName}", newClient.Name, stream.Name);

View File

@@ -269,6 +269,11 @@ namespace Horde.Build.Server
/// </summary>
public string? ReplicationFilter { get; set; }
/// <summary>
/// Stream to use for replication, if different to the default.
/// </summary>
public string? ReplicationStream { get; set; }
/// <summary>
/// Workflows for dealing with new issues
/// </summary>