58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
6 years ago
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
||
|
public class CiBuildSettings
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// A command specification (a system command),
|
||
|
/// in order to reference some trusted server-side process
|
||
|
/// </summary>
|
||
|
public class Command
|
||
|
{
|
||
|
[Required]
|
||
|
public string Path { get; set; }
|
||
|
public string[] Args { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Specific variables to this process
|
||
|
/// </summary>
|
||
|
/// <value></value>
|
||
|
public string[] Environment { get; set; }
|
||
|
public string WorkingDir { get; set; }
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// The global process environment variables
|
||
|
/// </summary>
|
||
|
/// <value></value>
|
||
|
public string[] Environment { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The required building command.
|
||
|
/// </summary>
|
||
|
/// <value></value>
|
||
|
[Required]
|
||
|
public Command Build { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// A preparing command.
|
||
|
/// It is optional, but when specified,
|
||
|
/// must end ok in order to launch the build.
|
||
|
/// </summary>
|
||
|
/// <value></value>
|
||
|
public Command Prepare { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// A post-production command,
|
||
|
/// for an example, some publishing,
|
||
|
/// push in prod env ...
|
||
|
/// only fired on successful build.
|
||
|
/// </summary>
|
||
|
/// <value></value>
|
||
|
public Command PostProduction { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Additional emails, as dest of notifications
|
||
|
/// </summary>
|
||
|
/// <value></value>
|
||
|
public string[] Emails { get; set; }
|
||
|
|
||
|
}
|