Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Commit b34a929

Browse files
authored
Minor engineering cleanup (#173)
Fix SourceLink validation failures. Add back the PR merge build trigger Add back setting DotNetPublishUsingPipelines
1 parent 7ee4641 commit b34a929

File tree

2 files changed

+18
-26
lines changed

2 files changed

+18
-26
lines changed

Directory.Build.targets

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
4+
5+
<!-- Work around https://github.com/dotnet/sourcelink/issues/572
6+
Remove once we build using an SDK that contains https://github.com/dotnet/sdk/pull/10613 -->
7+
<PropertyGroup>
8+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
12+
</ItemGroup>
413
</Project>

azure-pipelines.yml

+9-26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
trigger: none
1+
trigger:
2+
- master
23

34
pr:
45
autoCancel: true
@@ -10,18 +11,14 @@ pr:
1011
exclude:
1112
- docs/*
1213
- THIRD-PARTY-NOTICES.TXT
13-
- LICENSE.TXT
14+
- License.txt
1415

1516
variables:
1617
- name: _TeamName
1718
value: DotNetCore
18-
- name: _DotNetArtifactsCategory
19-
value: .NETCore
19+
- name: _SignType
20+
value: real
2021
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
21-
- name: _SignType
22-
value: real
23-
- name: _PublishBlobFeedUrl
24-
value: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
2522
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
2623
# DotNet-Diagnostics-SDL-Params provides Tsa* variables for SDL checks.
2724
# DotNet-Symbol-Server-Pats provides: provides microsoft-symbol-server-pat and symweb-symbol-server-pat
@@ -68,17 +65,13 @@ stages:
6865
matrix:
6966
build_debug:
7067
_BuildConfig: Debug
68+
_InternalBuildArgs: ''
7169
build_release:
7270
_BuildConfig: Release
7371
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
74-
_InternalBuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName)
75-
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
76-
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
77-
/p:DotNetPublishBlobFeedUrl=$(_PublishBlobFeedUrl)
78-
/p:DotNetPublishToBlobFeed=$(PublishPackages)
72+
_InternalBuildArgs: /p:DotNetSignType=$(_SignType)
73+
/p:TeamName=$(_TeamName)
7974
/p:DotNetPublishUsingPipelines=$(PublishPackages)
80-
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
81-
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
8275
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
8376

8477
steps:
@@ -91,16 +84,6 @@ stages:
9184
displayName: Build
9285
condition: succeeded()
9386

94-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
95-
- task: PublishBuildArtifacts@1
96-
displayName: Publish Package Artifacts
97-
inputs:
98-
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/packages'
99-
PublishLocation: Container
100-
ArtifactName: Packages
101-
continueOnError: true
102-
condition: always()
103-
10487
- job: Linux
10588
container: LinuxContainer
10689
pool:
@@ -172,5 +155,5 @@ stages:
172155
-TsaCodebaseName "symstore"
173156
-TsaPublish $True'
174157
artifactNames:
175-
- 'Packages'
158+
- 'PackageArtifacts'
176159

0 commit comments

Comments
 (0)