From a7ba1bdc415c55261197b96ee8cf6d6ae3b89867 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 30 Jul 2018 09:42:11 +0200 Subject: [PATCH] json ids in lower case --- cli/Settings/CiBuildSettings.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cli/Settings/CiBuildSettings.cs b/cli/Settings/CiBuildSettings.cs index 85f12608..3538872a 100644 --- a/cli/Settings/CiBuildSettings.cs +++ b/cli/Settings/CiBuildSettings.cs @@ -1,4 +1,5 @@ using System.ComponentModel.DataAnnotations; +using Newtonsoft.Json; public class CiBuildSettings { @@ -9,20 +10,28 @@ public class CiBuildSettings public class Command { [Required] + [JsonPropertyAttribute("path")] public string Path { get; set; } + + [JsonPropertyAttribute("args")] public string[] Args { get; set; } /// /// Specific variables to this process /// /// + /// + [JsonPropertyAttribute("env")] public string[] Environment { get; set; } + + [JsonPropertyAttribute("working_dir")] public string WorkingDir { get; set; } } /// /// The global process environment variables /// /// + [JsonPropertyAttribute("env")] public string[] Environment { get; set; } /// @@ -30,6 +39,7 @@ public class CiBuildSettings /// /// [Required] + [JsonPropertyAttribute("build")] public Command Build { get; set; } /// @@ -38,6 +48,7 @@ public class CiBuildSettings /// must end ok in order to launch the build. /// /// + [JsonPropertyAttribute("prepare")] public Command Prepare { get; set; } /// @@ -47,12 +58,14 @@ public class CiBuildSettings /// only fired on successful build. /// /// - public Command PostProduction { get; set; } + [JsonPropertyAttribute("post_build")] + public Command PostBuild { get; set; } /// /// Additional emails, as dest of notifications /// /// + [JsonPropertyAttribute("emails")] public string[] Emails { get; set; } } \ No newline at end of file