From b0131bb264da692d549d91705d16a699cc1dbd7b Mon Sep 17 00:00:00 2001 From: Tom Pallister Date: Tue, 10 Oct 2017 16:35:08 +0100 Subject: [PATCH] more logging to see whats wrong --- build.cake | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build.cake b/build.cake index bc6773c0e..9394f2755 100644 --- a/build.cake +++ b/build.cake @@ -298,17 +298,28 @@ Task("DownloadGitHubReleaseArtifacts") .IsDependentOn("UpdateVersionInfo") .Does(() => { + Information("DownloadGitHubReleaseArtifacts"); + EnsureDirectoryExists(packagesDir); + Information("Directory exists..."); + var releaseUrl = tagsUrl + releaseTag; + + Information("Release url " + releaseUrl); + var assets_url = ParseJson(GetResource(releaseUrl)) .GetValue("assets_url") .Value(); + Information("Assets url " + assets_url); + foreach(var asset in DeserializeJson(GetResource(assets_url))) { var file = packagesDir + File(asset.Value("name")); + Information("Downloading " + file); + DownloadFile(asset.Value("browser_download_url"), file); } }); @@ -416,7 +427,11 @@ private string GetResource(string url) { var assetsStream = assetsResponse.GetResponseStream(); var assetsReader = new StreamReader(assetsStream); - return assetsReader.ReadToEnd(); + var response = assetsReader.ReadToEnd(); + + Information("Response is " + response); + + return response; } }