Merge pull request #6108 from livarcocc/fix_version_during_publish_take_three
Fix publishing folder and copy to latest
This commit is contained in:
commit
5f9d0cca04
3 changed files with 14 additions and 4 deletions
|
@ -236,6 +236,7 @@ stages:
|
||||||
- group: DotNet-DotNetCli-Storage
|
- group: DotNet-DotNetCli-Storage
|
||||||
steps:
|
steps:
|
||||||
- script: eng/CopyToLatest.cmd
|
- script: eng/CopyToLatest.cmd
|
||||||
|
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
|
||||||
/p:DotnetPublishSdkAssetsBlobFeedUrl=https://dotnetcli.blob.core.windows.net/dotnet/index.json
|
/p:DotnetPublishSdkAssetsBlobFeedUrl=https://dotnetcli.blob.core.windows.net/dotnet/index.json
|
||||||
/p:DotNetPublishSdkAssetsBlobFeedKey=$(dotnetcli-storage-key)
|
/p:DotNetPublishSdkAssetsBlobFeedKey=$(dotnetcli-storage-key)
|
||||||
/p:DotnetPublishChecksumsBlobFeedUrl=https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
|
/p:DotnetPublishChecksumsBlobFeedUrl=https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project="$(NuGetPackageRoot)microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" Condition=" '$(PublishSdkAssetsAndChecksumsToBlob)' == 'true' " />
|
<Import Project="$(NuGetPackageRoot)microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" Condition=" '$(PublishSdkAssetsAndChecksumsToBlob)' == 'true' " />
|
||||||
|
|
||||||
<Import Project="..\src\redist\targets\Versions.targets" />
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Because we may be building in a container, we should use an asset manifest file path
|
<!-- Because we may be building in a container, we should use an asset manifest file path
|
||||||
|
@ -55,9 +53,14 @@
|
||||||
|
|
||||||
<Target Name="PublishSdkAssetsAndChecksums"
|
<Target Name="PublishSdkAssetsAndChecksums"
|
||||||
BeforeTargets="Publish"
|
BeforeTargets="Publish"
|
||||||
DependsOnTargets="GenerateFullNuGetVersion"
|
|
||||||
Condition=" '$(PublishSdkAssetsAndChecksumsToBlob)' == 'true' ">
|
Condition=" '$(PublishSdkAssetsAndChecksumsToBlob)' == 'true' ">
|
||||||
|
|
||||||
|
<ReadLinesFromFile File="$(ArtifactsTmpDir)FullNugetVersion.version">
|
||||||
|
<Output
|
||||||
|
TaskParameter="Lines"
|
||||||
|
PropertyName="FullNugetVersion"/>
|
||||||
|
</ReadLinesFromFile>
|
||||||
|
|
||||||
<!-- If the sdk version is stabilized, then we should double publish the binaries to suffixed file names.
|
<!-- If the sdk version is stabilized, then we should double publish the binaries to suffixed file names.
|
||||||
To do this, create new copies of the blobs, replacing the SdkVersion string in the file name with the
|
To do this, create new copies of the blobs, replacing the SdkVersion string in the file name with the
|
||||||
FullNugetVersion, except if the FullNuGetVersion is already in the file name (which would end up
|
FullNugetVersion, except if the FullNuGetVersion is already in the file name (which would end up
|
||||||
|
|
|
@ -414,10 +414,16 @@
|
||||||
ReplacementStrings="$(ReplacementString)" />
|
ReplacementStrings="$(ReplacementString)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="GenerateVersionFile" DependsOnTargets="SetupBundledComponents;GetCommitHash">
|
<Target Name="GenerateVersionFile"
|
||||||
|
DependsOnTargets="SetupBundledComponents;GetCommitHash;GenerateFullNuGetVersion">
|
||||||
<WriteLinesToFile File="$(SdkOutputDirectory).version"
|
<WriteLinesToFile File="$(SdkOutputDirectory).version"
|
||||||
Lines="$(GitCommitHash);$(Version);$(Rid)"
|
Lines="$(GitCommitHash);$(Version);$(Rid)"
|
||||||
Overwrite="true" />
|
Overwrite="true" />
|
||||||
|
|
||||||
|
<!-- This is a hack to make the full nuget version available during the publishing step -->
|
||||||
|
<WriteLinesToFile File="$(ArtifactsTmpDir)FullNugetVersion.version"
|
||||||
|
Lines="$(FullNugetVersion)"
|
||||||
|
Overwrite="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="LayoutAppHostTemplate" DependsOnTargets="RunResolvePackageDependencies">
|
<Target Name="LayoutAppHostTemplate" DependsOnTargets="RunResolvePackageDependencies">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue