Skip to content

Commit

Permalink
(cake-contribGH-523) Use .Net Global tool version of KuduSync
Browse files Browse the repository at this point in the history
This is the last of the tools that can be moved to .net core.
  • Loading branch information
gep13 committed Jul 30, 2020
1 parent 40513e8 commit b263005
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Cake.Recipe/Content/toolsettings.cake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static class ToolSettings
public static string GitVersionGlobalTool { get; private set; }
public static string ReportGeneratorGlobalTool { get; private set; }
public static string WyamGlobalTool { get; private set; }
public static string KuduSyncGlobalTool { get; private set; }

public static void SetToolPreprocessorDirectives(
string codecovTool = "#tool nuget:?package=codecov&version=1.12.1",
Expand All @@ -57,7 +58,9 @@ public static class ToolSettings
string gitReleaseManagerGlobalTool = "#tool dotnet:?package=GitReleaseManager.Tool&version=0.11.0",
string gitVersionGlobalTool = "#tool dotnet:?package=GitVersion.Tool&version=5.3.4",
string reportGeneratorGlobalTool = "#tool dotnet:?package=dotnet-reportgenerator-globaltool&version=4.6.1",
string wyamGlobalTool = "#tool dotnet:?package=Wyam.Tool&version=2.2.9"
string wyamGlobalTool = "#tool dotnet:?package=Wyam.Tool&version=2.2.9",
// This is using an unofficial build of kudusync so that we can have a .Net Global tool version. This was generated from this PR: https://github.com/projectkudu/KuduSync.NET/pull/27
string kuduSyncGlobalTool = "#tool dotnet:https://www.myget.org/F/cake-contrib/api/v3/index.json?package=KuduSync.Tool&version=1.5.4-gc5cc5a2a19"
)
{
CodecovTool = codecovTool;
Expand All @@ -78,6 +81,7 @@ public static class ToolSettings
CodecovGlobalTool = codecovGlobalTool;
CoverallsGlobalTool = coverallsGlobalTool;
WyamGlobalTool = wyamGlobalTool;
KuduSyncGlobalTool = kuduSyncGlobalTool;
}

public static void SetToolSettings(
Expand Down
2 changes: 1 addition & 1 deletion Cake.Recipe/Content/wyam.cake
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ BuildParameters.Tasks.ForcePublishDocumentationTask = Task("Force-Publish-Docume

public void PublishDocumentation()
{
RequireTool(ToolSettings.KuduSyncTool, () => {
RequireTool(BuildParameters.IsDotNetCoreBuild ? ToolSettings.KuduSyncGlobalTool : ToolSettings.KuduSyncTool, () => {
if (BuildParameters.CanUseWyam)
{
var sourceCommit = GitLogTip("./");
Expand Down

0 comments on commit b263005

Please sign in to comment.