Fixing where the CoreHost packages are published to the correct version folder.
Also fixing 'PullNupkgFilesFromBlob' target to no longer include the hack looking for the CoreHost packages under a "preview" version folder. Fix #3012
This commit is contained in:
parent
01b7bb439a
commit
572d68de7e
2 changed files with 2 additions and 15 deletions
|
@ -228,7 +228,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
foreach (var file in Directory.GetFiles(Dirs.CorehostLocalPackages, "*.nupkg"))
|
foreach (var file in Directory.GetFiles(Dirs.CorehostLocalPackages, "*.nupkg"))
|
||||||
{
|
{
|
||||||
var hostBlob = $"{Channel}/Binaries/{CliNuGetVersion}/{Path.GetFileName(file)}";
|
var hostBlob = $"{Channel}/Binaries/{SharedFrameworkNugetVersion}/{Path.GetFileName(file)}";
|
||||||
AzurePublisherTool.PublishFile(hostBlob, file);
|
AzurePublisherTool.PublishFile(hostBlob, file);
|
||||||
Console.WriteLine($"Publishing package {hostBlob} to Azure.");
|
Console.WriteLine($"Publishing package {hostBlob} to Azure.");
|
||||||
}
|
}
|
||||||
|
@ -458,10 +458,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
List<string> buildVersions = new List<string>();
|
List<string> buildVersions = new List<string>();
|
||||||
|
|
||||||
// The corehost packages are published to the CLI version, which is "preview1-xxxxxx" right now.
|
Regex buildVersionRegex = new Regex(@"Binaries/(?<version>\d+\.\d+\.\d+-[^-]+-\d{6})/$");
|
||||||
// But there are -rc2-xxxxxx blobs on Azure, which breaks the sort descending. So only look for
|
|
||||||
// -p(.*)-xxxxxx for now to ignore those rc2 packages.
|
|
||||||
Regex buildVersionRegex = new Regex(@"Binaries/(?<version>\d+\.\d+\.\d+-p[^-]+-\d{6})/$");
|
|
||||||
|
|
||||||
foreach (string file in AzurePublisherTool.ListBlobs(hostBlob))
|
foreach (string file in AzurePublisherTool.ListBlobs(hostBlob))
|
||||||
{
|
{
|
||||||
|
|
|
@ -205,15 +205,5 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<string> ListBlobs(string blobVirtualDirectory)
|
|
||||||
{
|
|
||||||
CloudBlobDirectory blobDir = _blobContainer.GetDirectoryReference(blobVirtualDirectory);
|
|
||||||
BlobContinuationToken continuationToken = new BlobContinuationToken();
|
|
||||||
|
|
||||||
var blobFiles = blobDir.ListBlobsSegmentedAsync(continuationToken).Result;
|
|
||||||
|
|
||||||
return blobFiles.Results.Select(bf => bf.Uri.AbsoluteUri);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue