Commits

mizipzor committed 6200805

Added option for including the TeamCity generated artifacts.

  • Participants
  • Parent commits dcd6030

Comments (0)

Files changed (2)

             HelpText = "Url to TeamCity instance.")]
         public string Url { get; set; }
 
+        [Option(null, "hidden", DefaultValue = false,
+            HelpText = "Include TeamCity generated hidden artifacts")]
+        public bool IncludeHidden { get; set; }
+
         [HelpOption]
         public string GetUsage()
         {

TeamCityArtifactDownloader.cs

                 // go through every artifact
                 foreach (string fileName in GetArtifacts())
                 {
+                    if (fileName.StartsWith(".teamcity") &&
+                        !options.IncludeHidden)
+                    {
+                        continue;
+                    }
+
                     // filter on glob
                     if (string.IsNullOrEmpty(options.Glob) ||
                         fileName.Glob(options.Glob))