json ids in lower case
This commit is contained in:
parent
c79003e014
commit
a7ba1bdc41
1 changed files with 14 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
public class CiBuildSettings
|
public class CiBuildSettings
|
||||||
{
|
{
|
||||||
|
|
@ -9,20 +10,28 @@ public class CiBuildSettings
|
||||||
public class Command
|
public class Command
|
||||||
{
|
{
|
||||||
[Required]
|
[Required]
|
||||||
|
[JsonPropertyAttribute("path")]
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
||||||
|
[JsonPropertyAttribute("args")]
|
||||||
public string[] Args { get; set; }
|
public string[] Args { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specific variables to this process
|
/// Specific variables to this process
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
|
///
|
||||||
|
[JsonPropertyAttribute("env")]
|
||||||
public string[] Environment { get; set; }
|
public string[] Environment { get; set; }
|
||||||
|
|
||||||
|
[JsonPropertyAttribute("working_dir")]
|
||||||
public string WorkingDir { get; set; }
|
public string WorkingDir { get; set; }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The global process environment variables
|
/// The global process environment variables
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
|
[JsonPropertyAttribute("env")]
|
||||||
public string[] Environment { get; set; }
|
public string[] Environment { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -30,6 +39,7 @@ public class CiBuildSettings
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[Required]
|
[Required]
|
||||||
|
[JsonPropertyAttribute("build")]
|
||||||
public Command Build { get; set; }
|
public Command Build { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -38,6 +48,7 @@ public class CiBuildSettings
|
||||||
/// must end ok in order to launch the build.
|
/// must end ok in order to launch the build.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
|
[JsonPropertyAttribute("prepare")]
|
||||||
public Command Prepare { get; set; }
|
public Command Prepare { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -47,12 +58,14 @@ public class CiBuildSettings
|
||||||
/// only fired on successful build.
|
/// only fired on successful build.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
public Command PostProduction { get; set; }
|
[JsonPropertyAttribute("post_build")]
|
||||||
|
public Command PostBuild { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Additional emails, as dest of notifications
|
/// Additional emails, as dest of notifications
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
|
[JsonPropertyAttribute("emails")]
|
||||||
public string[] Emails { get; set; }
|
public string[] Emails { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue