Пример #1
0
 public override void Write(CustomFileWriter writer)
 {
     using (writer.WriteBlock("vcs"))
     {
         writer.WriteLine($"branchFilter = {BranchFilter.DoubleQuote()}");
         writer.WriteLine($"triggerRules = {TriggerRules.DoubleQuote()}");
     }
 }
Пример #2
0
        public override void Write(CustomFileWriter writer)
        {
            using (writer.WriteBlock("schedule"))
            {
                using (writer.WriteBlock("schedulingPolicy = daily"))
                {
                    writer.WriteLine("hour = 3");
                    writer.WriteLine("timezone = \"Europe/Berlin\"");
                }

                writer.WriteLine($"branchFilter = {BranchFilter.DoubleQuote()}");
                writer.WriteLine($"triggerRules = {TriggerRules.DoubleQuote()}");
                writer.WriteLine("triggerBuild = always()");
                writer.WriteLine("withPendingChangesOnly = false");
                writer.WriteLine($"enableQueueOptimization = {EnableQueueOptimization.ToString().ToLowerInvariant()}");
                writer.WriteLine("param(\"cronExpression_min\", \"3\")");
            }
        }