From 2a870ee6c38241ddf965cda553f44ad82850ac84 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Tue, 24 May 2016 16:53:35 -0500 Subject: [PATCH] Remove updating dotnet/versions repo with the latest shared framework version. This is breaking the build, and it should be done in core-setup instead. --- build_projects/dotnet-cli-build/PublishTargets.cs | 4 ---- build_projects/shared-build-targets-utils/Utils/GitUtils.cs | 5 ----- 2 files changed, 9 deletions(-) diff --git a/build_projects/dotnet-cli-build/PublishTargets.cs b/build_projects/dotnet-cli-build/PublishTargets.cs index 0d2acc82c..fb796dfda 100644 --- a/build_projects/dotnet-cli-build/PublishTargets.cs +++ b/build_projects/dotnet-cli-build/PublishTargets.cs @@ -148,10 +148,6 @@ namespace Microsoft.DotNet.Cli.Build string nugetFeedUrl = EnvVars.EnsureVariable("NUGET_FEED_URL"); string apiKey = EnvVars.EnsureVariable("NUGET_API_KEY"); NuGetUtil.PushPackages(Dirs.PackagesNoRID, nugetFeedUrl, apiKey); - - string githubAuthToken = EnvVars.EnsureVariable("GITHUB_PASSWORD"); - VersionRepoUpdater repoUpdater = new VersionRepoUpdater(githubAuthToken); - repoUpdater.UpdatePublishedVersions(Dirs.PackagesNoRID, $"build-info/dotnet/cli/{GitUtils.GetBranchName()}/CORE_SETUP_LATEST").Wait(); } private static bool CheckIfAllBuildsHavePublished() diff --git a/build_projects/shared-build-targets-utils/Utils/GitUtils.cs b/build_projects/shared-build-targets-utils/Utils/GitUtils.cs index 1484ad65f..bae5c67e6 100644 --- a/build_projects/shared-build-targets-utils/Utils/GitUtils.cs +++ b/build_projects/shared-build-targets-utils/Utils/GitUtils.cs @@ -14,11 +14,6 @@ namespace Microsoft.DotNet.Cli.Build return ExecuteGitCommand("rev-parse", "HEAD"); } - public static string GetBranchName() - { - return ExecuteGitCommand("rev-parse", "--abbrev-ref", "HEAD"); - } - private static string ExecuteGitCommand(params string[] args) { var gitResult = Cmd("git", args)