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