Exemple #1
0
 public override string[] GenerateSetParameterMessage(string name, string value)
 {
     return(new[]
     {
         $"##teamcity[setParameter name='GitVersion.{name}' value='{ServiceMessageEscapeHelper.EscapeValue(value)}']",
         $"##teamcity[setParameter name='system.GitVersion.{name}' value='{ServiceMessageEscapeHelper.EscapeValue(value)}']"
     });
 }
Exemple #2
0
        public override string[] GenerateSetParameterMessage(string name, string value)
        {
            var messages = new List <string>
            {
                $"##myget[setParameter name='GitVersion.{name}' value='{ServiceMessageEscapeHelper.EscapeValue(value)}']"
            };

            if (string.Equals(name, "LegacySemVerPadded", StringComparison.InvariantCultureIgnoreCase))
            {
                messages.Add($"##myget[buildNumber '{ServiceMessageEscapeHelper.EscapeValue(value)}']");
            }

            return(messages.ToArray());
        }
Exemple #3
0
 public override string GenerateSetVersionMessage(VersionVariables variables)
 {
     return($"##teamcity[buildNumber '{ServiceMessageEscapeHelper.EscapeValue(variables.FullSemVer)}']");
 }