Use new publish mechanism in core-setup
This commit is contained in:
Родитель
1c00c8d19b
Коммит
44368e324e
|
@ -232,7 +232,7 @@
|
|||
"solution": "$(PB_SourcesDirectory)\\publish\\publish.proj",
|
||||
"platform": "$(PB_TargetArchitecture)",
|
||||
"configuration": "$(BuildConfiguration)",
|
||||
"msbuildArguments": "/p:Configuration=$(BuildConfiguration) $(PB_CommonMSBuildArgs) /p:SignType=$(PB_SignType) /p:NuGetFeedUrl=$(NUGET_FEED_URL) /p:NuGetSymbolsFeedUrl=$(NUGET_SYMBOLS_FEED_URL) /p:NuGetApiKey=$(NUGET_API_KEY) /p:AzureAccountName=$(PB_AzureAccountName) /p:ContainerName=$(PB_ContainerName) /p:AzureAccessToken=$(PB_AzureAccessToken) /p:ChecksumAzureAccountName=$(PB_ChecksumAzureAccountName) /p:ChecksumContainerName=$(PB_ChecksumContainerName) /p:ChecksumAzureAccessToken=$(PB_ChecksumAzureAccessToken) /p:GitHubUser=$(PB_GitHubUser) /p:GitHubEmail=$(PB_GitHubEmail) /p:GitHubAuthToken=$(GITHUB_PASSWORD) /p:VersionsRepoOwner=$(PB_VersionsRepoOwner) /p:VersionsRepo=$(PB_VersionsRepo) /p:VersionsRepoPath=build-info/dotnet/$(PB_RepoName)/$(SourceBranch) /p:Finalize=true /p:DotNetToolDir=$(DotNetToolDir) /p:EmbedIndexToolDir=$(EmbedIndexToolDir) /flp:v=detailed;LogFile=$(PB_SourcesDirectory)\\publish.log",
|
||||
"msbuildArguments": "/p:Configuration=$(BuildConfiguration) $(PB_CommonMSBuildArgs) /p:SignType=$(PB_SignType) /p:NuGetFeedUrl=$(NUGET_FEED_URL) /p:NuGetSymbolsFeedUrl=$(NUGET_SYMBOLS_FEED_URL) /p:NuGetApiKey=$(NUGET_API_KEY) /p:AzureAccountName=$(PB_AzureAccountName) /p:ContainerName=$(PB_ContainerName) /p:AzureAccessToken=$(PB_AzureAccessToken) /p:ChecksumAzureAccountName=$(PB_ChecksumAzureAccountName) /p:ChecksumContainerName=$(PB_ChecksumContainerName) /p:ChecksumAzureAccessToken=$(PB_ChecksumAzureAccessToken) /p:PackagesUrl=$(PB_PackagesUrl) /p:SymbolPackagesUrl=$(PB_SymbolPackagesUrl) /p:TransportFeedAccessToken=$(PB_TransportFeedAccessToken) /p:GitHubUser=$(PB_GitHubUser) /p:GitHubEmail=$(PB_GitHubEmail) /p:GitHubAuthToken=$(GITHUB_PASSWORD) /p:VersionsRepoOwner=$(PB_VersionsRepoOwner) /p:VersionsRepo=$(PB_VersionsRepo) /p:VersionsRepoPath=build-info/dotnet/$(PB_RepoName)/$(SourceBranch) /p:Finalize=true /p:DotNetToolDir=$(DotNetToolDir) /p:EmbedIndexToolDir=$(EmbedIndexToolDir) /flp:v=detailed;LogFile=$(PB_SourcesDirectory)\\publish.log",
|
||||
"clean": "false",
|
||||
"maximumCpuCount": "false",
|
||||
"restoreNugetPackages": "false",
|
||||
|
@ -382,6 +382,22 @@
|
|||
"value": null,
|
||||
"isSecret": true
|
||||
},
|
||||
"PB_TransportFeedAccountName": {
|
||||
"value": "dotnetfeed"
|
||||
},
|
||||
"PB_TransportFeedContainerName": {
|
||||
"value": "dotnet-core"
|
||||
},
|
||||
"PB_TransportFeedAccessToken": {
|
||||
"value": null,
|
||||
"isSecret": true
|
||||
},
|
||||
"PB_PackagesUrl": {
|
||||
"value": "https://$(PB_TransportFeedAccountName).blob.core.windows.net/$(PB_TransportFeedContainerName)/packages/index.json"
|
||||
},
|
||||
"PB_SymbolPackagesUrl": {
|
||||
"value": "https://$(PB_TransportFeedAccountName).blob.core.windows.net/$(PB_TransportFeedContainerName)/symbols/index.json"
|
||||
},
|
||||
"PB_ChecksumAzureAccountName": {
|
||||
"value": "dotnetclichecksums"
|
||||
},
|
||||
|
|
|
@ -41,10 +41,15 @@
|
|||
<MicrosoftBuildFrameworkPackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildFrameworkPackageVersion>
|
||||
<MicrosoftBuildTasksCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildTasksCorePackageVersion>
|
||||
<MicrosoftBuildUtilitiesCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildUtilitiesCorePackageVersion>
|
||||
|
||||
<MicrosoftDotNetPlatformAbstractionsPackageVersion>1.1.1</MicrosoftDotNetPlatformAbstractionsPackageVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Package versions used as toolsets -->
|
||||
<PropertyGroup>
|
||||
<FeedTasksPackage>Microsoft.DotNet.Build.Tasks.Feed</FeedTasksPackage>
|
||||
<FeedTasksPackageVersion>1.0.0-prerelease-02121-01</FeedTasksPackageVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<RemoteDependencyBuildInfo Include="CoreFx">
|
||||
<BuildInfoPath>$(BaseDotNetBuildInfo)corefx/$(DependencyBranch)</BuildInfoPath>
|
||||
|
@ -101,6 +106,11 @@
|
|||
<ElementName>WcfVersion</ElementName>
|
||||
<PackageId>System.ServiceModel.Duplex</PackageId>
|
||||
</XmlUpdateStep>
|
||||
<XmlUpdateStep Include="BuildTools">
|
||||
<Path>$(MSBuildThisFileFullPath)</Path>
|
||||
<ElementName>FeedTasksPackageVersion</ElementName>
|
||||
<PackageId>$(FeedTasksPackage)</PackageId>
|
||||
</XmlUpdateStep>
|
||||
<UpdateStep Include="BuildTools">
|
||||
<UpdaterType>File</UpdaterType>
|
||||
<Path>$(RepoRoot)BuildToolsVersion.txt</Path>
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
<TargetFramework>netcoreapp1.0</TargetFramework>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
|
||||
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)Tools/$(BuildToolsPackageVersion)</BaseIntermediateOutputPath>
|
||||
<BaseIntermediateOutputPath>$(ToolsDir)/$(BuildToolsPackageVersion)</BaseIntermediateOutputPath>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.DotNet.BuildTools" Version="$(BuildToolsPackageVersion)" />
|
||||
<PackageReference Include="$(FeedTasksPackage)" Version="$(FeedTasksPackageVersion)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -7,6 +7,8 @@
|
|||
<UsingTask TaskName="ListAzureBlobs" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.CloudTestTasks.dll" />
|
||||
<UsingTask TaskName="UploadToAzure" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.CloudTestTasks.dll" />
|
||||
|
||||
<Import Project="$(PackagesDir)/$(FeedTasksPackage)/$(FeedTasksPackageVersion)/build/$(FeedTasksPackage).targets" />
|
||||
|
||||
<Target Name="Build"
|
||||
DependsOnTargets="PublishToAzure;PublishDebFilesToDebianRepo;PublishDebToolPackageToFeed;PublishFinalOutput" />
|
||||
|
||||
|
@ -149,8 +151,8 @@
|
|||
ForcePublish="true" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PublishCoreHostPackagesToFeed"
|
||||
DependsOnTargets="CheckIfAllBuildsHavePublished;DownloadCoreHostPackages;SignSymbolPackages;DoPushCoreHostPackagesToFeed"
|
||||
<Target Name="PublishCoreHostPackages"
|
||||
DependsOnTargets="CheckIfAllBuildsHavePublished;DownloadCoreHostPackages;SignSymbolPackages;DoPushCoreHostPackagesToFeed;DoPushCoreHostPackagesToAzure"
|
||||
Condition="'@(_MissingBlobNames)' == '' AND '$(NuGetFeedUrl)' != ''">
|
||||
<Error Condition="'$(NuGetFeedUrl)' ==''" Text="Missing required property NuGetFeedUrl" />
|
||||
<Error Condition="'$(NuGetApiKey)' == ''" Text="Missing required property NuGetApiKey" />
|
||||
|
@ -241,6 +243,48 @@
|
|||
IgnoredErrorMessagesWithConditional="@(IgnorableErrorMessages)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="DoPushCoreHostPackagesToAzure"
|
||||
DependsOnTargets="PublishToAzureBlobFeed;PublishSymbolsToAzureBlobFeed"
|
||||
Condition="'$(OfficialPublish)' == 'true'"/>
|
||||
|
||||
<Target Name="PublishToAzureBlobFeed">
|
||||
<Error Condition="'$(PackagesUrl)'==''" Text="Missing property PackagesUrl" />
|
||||
<Error Condition="'$(TransportFeedAccessToken)'==''" Text="Missing property TransportFeedAccessToken" />
|
||||
<PropertyGroup>
|
||||
<ExpectedFeedUrl>$(PackagesUrl)</ExpectedFeedUrl>
|
||||
<PublishFlatContainer Condition="'$(PublishFlatContainer)' == ''">false</PublishFlatContainer>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ItemsToPush Remove="*.nupkg" />
|
||||
<ItemsToPush Include="@(_DownloadedStandardPackages)"/>
|
||||
</ItemGroup>
|
||||
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
|
||||
AccountKey="$(TransportFeedAccessToken)"
|
||||
ItemsToPush="@(ItemsToPush)"
|
||||
PublishFlatContainer="$(PublishFlatContainer)"
|
||||
Overwrite="$(OverwriteOnPublish)"
|
||||
IndexDirectory="$(ObjDir)"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="PublishSymbolsToAzureBlobFeed">
|
||||
<Error Condition="'$(SymbolPackagesUrl)'==''" Text="Missing property SymbolPackagesUrl" />
|
||||
<Error Condition="'$(TransportFeedAccessToken)'==''" Text="Missing property TransportFeedAccessToken" />
|
||||
<PropertyGroup>
|
||||
<ExpectedFeedUrl>$(SymbolPackagesUrl)</ExpectedFeedUrl>
|
||||
<PublishFlatContainer Condition="'$(PublishFlatContainer)' == ''">true</PublishFlatContainer>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ItemsToPush Remove="*.nupkg" />
|
||||
<ItemsToPush Include="@(_DownloadedSymbolsPackages)"/>
|
||||
</ItemGroup>
|
||||
<PushToBlobFeed ExpectedFeedUrl="$(ExpectedFeedUrl)"
|
||||
AccountKey="$(TransportFeedAccessToken)"
|
||||
ItemsToPush="@(ItemsToPush)"
|
||||
PublishFlatContainer="$(PublishFlatContainer)"
|
||||
Overwrite="$(OverwriteOnPublish)"
|
||||
IndexDirectory="$(ObjDir)"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="PublishDebToolPackageToFeed"
|
||||
Condition="'$(PublishDebToolToFeed)' == 'true' AND '$(CliNuGetFeedUrl)' != ''">
|
||||
<Error Condition="'$(CliNuGetApiKey)' == ''" Text="Missing required property CliNuGetApiKey" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче