Add PullNupkgFilesFromBlob target
This target pulls all the nupkgs from the matching azure storage and then copies them into the artifact\$(RID)\packages folder.
This commit is contained in:
parent
b9d6a0c911
commit
d7376f84c3
2 changed files with 30 additions and 0 deletions
|
@ -322,5 +322,16 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
}
|
||||
return c.Success();
|
||||
}
|
||||
|
||||
[Target(nameof(PrepareTargets.Init), nameof(InitPublish))]
|
||||
public static BuildTargetResult PullNupkgFilesFromBlob(BuildTargetContext c)
|
||||
{
|
||||
var hostBlob = $"{Channel}/Binaries/{CliNuGetVersion}/";
|
||||
|
||||
Directory.CreateDirectory(Dirs.Packages);
|
||||
AzurePublisherTool.DownloadFiles(hostBlob, ".nupkg", Dirs.Packages);
|
||||
|
||||
return c.Success();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue