Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Publish to dotnet/versions during official builds (#5003)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagood committed Jan 18, 2019
1 parent 43d65a3 commit 7da36ba
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions azure-pipelines.yml
Expand Up @@ -39,6 +39,15 @@ variables:
/p:SymbolPackagesUrl=$(_PublishBlobFeedUrl)
/p:TransportFeedAccessToken=$(dotnetfeed-storage-access-key-1)

- name: _DotNetVersionsArgs
value: >-
/p:GitHubUser=dotnet-build-bot
/p:GitHubEmail=dotnet-build-bot@microsoft.com
/p:GitHubAuthToken=$(AccessToken-dotnet-build-bot-public-repo)
/p:VersionsRepoOwner=dotnet
/p:VersionsRepo=versions
/p:VersionsRepoPath=build-info/dotnet/core-setup/$(FullBranchName)
# Symbol Server update
- name: _SymbolServerPath
value: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection
Expand Down
13 changes: 13 additions & 0 deletions eng/jobs/finalize-publish.yml
Expand Up @@ -58,6 +58,18 @@ jobs:
continueOnError: false
condition: and(succeeded(), in(variables['SignType'], 'real', 'test'))

- powershell: |
$prefix = "refs/heads/"
$branch = "$(Build.SourceBranch)"
$branchName = $branch
if ($branchName.StartsWith($prefix))
{
$branchName = $branchName.Substring($prefix.Length)
}
Write-Host "For Build.SourceBranch $branch, FullBranchName is $branchName"
Write-Host "##vso[task.setvariable variable=FullBranchName;]$branchName"
displayName: Find true SourceBranchName
- task: MSBuild@1
displayName: Publish (no PublishType)
inputs:
Expand All @@ -73,6 +85,7 @@ jobs:
/p:StabilizePackageVersion=$(IsStable)
/p:TargetArchitecture=x64
$(_BlobFeedArgs)
$(_DotNetVersionsArgs)
$(_CommonPublishArgs)
$(_NugetFeedArgs)
$(_SymbolServerArgs)
Expand Down
2 changes: 1 addition & 1 deletion publish/publish.proj
Expand Up @@ -32,7 +32,7 @@

<Target Name="PublishFinalOutput"
Condition="'$(Finalize)' == 'true'"
DependsOnTargets="PublishCoreHostPackages;SetupPublishSymbols;PublishSymbols;FinalizeBuildInAzure" />
DependsOnTargets="PublishCoreHostPackages;SetupPublishSymbols;PublishSymbols;FinalizeBuildInAzure;UpdateVersionsRepo" />

<Target Name="GetPackagesToSign" DependsOnTargets="GatherShippingPackages">
<ItemGroup>
Expand Down

0 comments on commit 7da36ba

Please sign in to comment.