another script change to find error

This commit is contained in:
Tom Pallister
2017-10-10 17:52:38 +01:00
parent d4f972125e
commit 4d3a7ae5e1
2 changed files with 67 additions and 18 deletions

View File

@ -298,34 +298,42 @@ Task("DownloadGitHubReleaseArtifacts")
.IsDependentOn("UpdateVersionInfo")
.Does(() =>
{
Information("DownloadGitHubReleaseArtifacts");
try
{
Information("DownloadGitHubReleaseArtifacts");
EnsureDirectoryExists(packagesDir);
EnsureDirectoryExists(packagesDir);
Information("Directory exists...");
Information("Directory exists...");
var releaseUrl = tagsUrl + releaseTag;
var releaseUrl = tagsUrl + releaseTag;
Information("Release url " + releaseUrl);
Information("Release url " + releaseUrl);
var assets_url = ParseJson(GetResource(releaseUrl))
.GetValue("assets_url")
.Value<string>();
var assets_url = ParseJson(GetResource(releaseUrl))
.GetValue("assets_url")
.Value<string>();
Information("Assets url " + assets_url);
Information("Assets url " + assets_url);
foreach(var asset in DeserializeJson<JArray>(GetResource(assets_url)))
{
Information("In the loop..");
foreach(var asset in DeserializeJson<JArray>(GetResource(assets_url)))
{
Information("In the loop..");
var file = packagesDir + File(asset.Value<string>("name"));
var file = packagesDir + File(asset.Value<string>("name"));
Information("Downloading " + file);
DownloadFile(asset.Value<string>("browser_download_url"), file);
}
Information("Downloading " + file);
DownloadFile(asset.Value<string>("browser_download_url"), file);
}
Information("Out of the loop...");
Information("Out of the loop...");
}
catch(Exception exception)
{
Information("There was an exception " + exception);
throw;
}
});
Task("ReleasePackagesToStableFeed")