Disable VSO build of host nupkgs
This commit is contained in:
parent
2ce0a934a3
commit
3b6d91b039
2 changed files with 5 additions and 1 deletions
|
@ -155,6 +155,10 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[Target(nameof(CompileCoreHost))]
|
||||
public static BuildTargetResult PackageCoreHost(BuildTargetContext c)
|
||||
{
|
||||
if (!string.Equals(Environment.GetEnvironmentVariable("BUILD_COREHOST_PACKAGES"), "1"))
|
||||
{
|
||||
return c.Success();
|
||||
}
|
||||
var buildVersion = c.BuildContext.Get<BuildVersion>("BuildVersion");
|
||||
var versionTag = buildVersion.ReleaseSuffix;
|
||||
var buildMajor = buildVersion.CommitCountString;
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[Target]
|
||||
public static BuildTargetResult PublishCoreHostPackages(BuildTargetContext c)
|
||||
{
|
||||
foreach (var file in Directory.GetFiles(Path.Combine(Dirs.Corehost, "*.nupkg")))
|
||||
foreach (var file in Directory.GetFiles(Dirs.Corehost, "*.nupkg"))
|
||||
{
|
||||
var hostBlob = $"{Channel}/Binaries/{CliNuGetVersion}/{Path.GetFileName(file)}";
|
||||
AzurePublisherTool.PublishFile(hostBlob, file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue