示例#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)}']"
     });
 }
示例#2
0
        public override string[] GenerateSetParameterMessage(string name, string value)
        {
            var messages = new List <string>
            {
                string.Format("##myget[setParameter name='GitVersion.{0}' value='{1}']", name, ServiceMessageEscapeHelper.EscapeValue(value))
            };

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

            return(messages.ToArray());
        }
示例#3
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", StringComparerUtils.IgnoreCaseComparison))
            {
                messages.Add($"##myget[buildNumber '{ServiceMessageEscapeHelper.EscapeValue(value)}']");
            }

            return(messages.ToArray());
        }
示例#4
0
 public override string GenerateSetVersionMessage(VersionVariables variables)
 {
     return(string.Format("##teamcity[buildNumber '{0}']", ServiceMessageEscapeHelper.EscapeValue(variables.FullSemVer)));
 }
示例#5
0
 public override string[] GenerateSetParameterMessage(string name, string value)
 {
     return(new[]
     {
         string.Format("##teamcity[setParameter name='GitVersion.{0}' value='{1}']", name, ServiceMessageEscapeHelper.EscapeValue(value)),
         string.Format("##teamcity[setParameter name='system.GitVersion.{0}' value='{1}']", name, ServiceMessageEscapeHelper.EscapeValue(value))
     });
 }
示例#6
0
 public override string GenerateSetVersionMessage(string versionToUseForBuildNumber)
 {
     return(string.Format("##teamcity[buildNumber '{0}']", ServiceMessageEscapeHelper.EscapeValue(versionToUseForBuildNumber)));
 }