Example #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)}']"
     });
 }
Example #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());
        }
Example #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());
        }
Example #4
0
 public override string GenerateSetVersionMessage(VersionVariables variables)
 {
     return(string.Format("##teamcity[buildNumber '{0}']", ServiceMessageEscapeHelper.EscapeValue(variables.FullSemVer)));
 }
Example #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))
     });
 }
Example #6
0
 public override string GenerateSetVersionMessage(string versionToUseForBuildNumber)
 {
     return(string.Format("##teamcity[buildNumber '{0}']", ServiceMessageEscapeHelper.EscapeValue(versionToUseForBuildNumber)));
 }