public void WriteIntegrationParameters(IEnumerable <IBuildServer> applicableBuildServers, VersionVariables variables)
 {
     foreach (var buildServer in applicableBuildServers)
     {
         logger.LogInfo(string.Format("Executing GenerateSetVersionMessage for '{0}'.", buildServer.GetType().Name));
         logger.LogInfo(buildServer.GenerateSetVersionMessage(variables.FullSemVer));
         logger.LogInfo(string.Format("Executing GenerateBuildLogOutput for '{0}'.", buildServer.GetType().Name));
         foreach (var buildParameter in BuildOutputFormatter.GenerateBuildLogOutput(buildServer, variables))
         {
             logger.LogInfo(buildParameter);
         }
     }
 }
Example #2
0
 public void WriteIntegrationParameters(SemanticVersion semanticVersion, IEnumerable <IBuildServer> applicableBuildServers)
 {
     foreach (var buildServer in applicableBuildServers)
     {
         logger.LogInfo(string.Format("Executing GenerateSetVersionMessage for '{0}'.", buildServer.GetType().Name));
         logger.LogInfo(buildServer.GenerateSetVersionMessage(semanticVersion.ToString()));
         logger.LogInfo(string.Format("Executing GenerateBuildLogOutput for '{0}'.", buildServer.GetType().Name));
         foreach (var buildParameter in BuildOutputFormatter.GenerateBuildLogOutput(semanticVersion, buildServer))
         {
             logger.LogInfo(buildParameter);
         }
     }
 }
 private static void WriteIntegrationParameters(TaskLogger logger, IEnumerable <IBuildServer> applicableBuildServers, VersionVariables versionVariables)
 {
     foreach (var buildServer in applicableBuildServers)
     {
         logger.LogInfo($"Executing GenerateSetVersionMessage for '{ buildServer.GetType().Name }'.");
         logger.LogInfo(buildServer.GenerateSetVersionMessage(versionVariables));
         logger.LogInfo($"Executing GenerateBuildLogOutput for '{ buildServer.GetType().Name }'.");
         foreach (var buildParameter in BuildOutputFormatter.GenerateBuildLogOutput(buildServer, versionVariables))
         {
             logger.LogInfo(buildParameter);
         }
     }
 }