2018-07-28 01:55:13 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2018-07-30 09:42:11 +02:00
|
|
|
using Newtonsoft.Json;
|
2018-07-28 01:55:13 +02:00
|
|
|
|
2019-08-26 01:54:38 +01:00
|
|
|
namespace Yavsc.Abstract.IT {
|
2019-06-22 19:34:39 +01:00
|
|
|
|
2018-07-28 01:55:13 +02:00
|
|
|
public class CiBuildSettings
|
|
|
|
|
{
|
2019-06-22 19:34:39 +01:00
|
|
|
|
2018-07-28 01:55:13 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The global process environment variables
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
2023-03-19 15:59:58 +00:00
|
|
|
[JsonProperty("env")]
|
2018-07-28 01:55:13 +02:00
|
|
|
public string[] Environment { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The required building command.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
[Required]
|
2018-07-30 09:42:11 +02:00
|
|
|
[JsonPropertyAttribute("build")]
|
2019-06-22 19:34:39 +01:00
|
|
|
public CommandPipe Build { get; set; }
|
2018-07-28 01:55:13 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A preparing command.
|
|
|
|
|
/// It is optional, but when specified,
|
|
|
|
|
/// must end ok in order to launch the build.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
2018-07-30 09:42:11 +02:00
|
|
|
[JsonPropertyAttribute("prepare")]
|
2019-06-22 19:34:39 +01:00
|
|
|
public CommandPipe Prepare { get; set; }
|
2018-07-28 01:55:13 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A post-production command,
|
|
|
|
|
/// for an example, some publishing,
|
|
|
|
|
/// push in prod env ...
|
|
|
|
|
/// only fired on successful build.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
2018-07-30 09:42:11 +02:00
|
|
|
[JsonPropertyAttribute("post_build")]
|
2019-06-22 19:34:39 +01:00
|
|
|
public CommandPipe PostBuild { get; set; }
|
2018-07-28 01:55:13 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Additional emails, as dest of notifications
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
2018-07-30 09:42:11 +02:00
|
|
|
[JsonPropertyAttribute("emails")]
|
2018-07-28 01:55:13 +02:00
|
|
|
public string[] Emails { get; set; }
|
|
|
|
|
|
2019-08-26 01:54:38 +01:00
|
|
|
}
|
|
|
|
|
}
|