forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-dotnet.yml
121 lines (105 loc) · 3.82 KB
/
.vsts-dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
trigger:
- master
jobs:
- job: Windows_NT
pool:
name: VSEng-MicroBuildVS2017
demands:
- agent.os -equals Windows_NT
timeoutInMinutes: 180
variables:
- group: DotNet-Blob-Feed
- group: DotNet-Symbol-Publish
- group: Publish-Build-Assets
- name: TeamName
value: MSBuild
steps:
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
inputs:
signType: real
condition: succeeded()
- task: ms-vseng.MicroBuildTasks.32f78468-e895-4f47-962c-58a699361df8.MicroBuildSwixPlugin@1
inputs:
feedSource: 'https://devdiv-test.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json'
- script: eng/CIBuild.cmd
-configuration Release
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
/p:DotNetPublishBlobFeedUrl=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
/p:DotNetPublishToBlobFeed=true
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
/p:PublishToSymbolServer=true
/p:DotNetSignType=real
/p:TeamName=MSBuild
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
displayName: Build
condition: succeeded()
- task: PublishTestResults@2
displayName: Publish .NET Framework Test Results
inputs:
testRunTitle: 'Windows-on-full Release Full Framework'
testRunner: XUnit
testResultsFiles: 'artifacts/TestResults/Release/*UnitTests_net472*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishTestResults@2
displayName: Publish .NET Core 2.1 Test Results
inputs:
testRunTitle: 'Windows-on-full Release .NET Core 2.1'
testRunner: XUnit
testResultsFiles: 'artifacts/TestResults/Release/*UnitTests_netcoreapp2.1*.xml'
publishRunAttachments: true
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: logs'
inputs:
PathtoPublish: 'artifacts\log\Release'
ArtifactName: logs
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: packages'
inputs:
PathtoPublish: 'artifacts\packages\Release'
ArtifactName: packages
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: vsix'
inputs:
PathtoPublish: 'artifacts\VSSetup\Release\Insertion'
ArtifactName: vsix
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: bin'
inputs:
PathtoPublish: 'artifacts\bin'
ArtifactName: bin
condition: succeededOrFailed()
- task: ms-vseng.MicroBuildTasks.4305a8de-ba66-4d8b-b2d1-0dc4ecbbf5e8.MicroBuildUploadVstsDropFolder@1
displayName: Upload VSTS Drop
inputs:
DropFolder: 'artifacts\VSSetup\Release\Insertion'
condition: succeeded()
- task: CopyFiles@2
displayName: Gather Asset Manifests
inputs:
SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/Release/AssetManifest'
TargetFolder: '$(Build.StagingDirectory)/AssetManifests'
condition: succeeded()
- task: PublishBuildArtifacts@1
displayName: Push Asset Manifests
inputs:
PathtoPublish: '$(Build.StagingDirectory)/AssetManifests'
PublishLocation: Container
ArtifactName: AssetManifests
condition: succeeded()
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Execute cleanup tasks
- template: /eng/common/templates/job/publish-build-assets.yml
parameters:
enablePublishBuildArtifacts: true
dependsOn:
- Windows_NT
pool:
vmImage: vs2017-win2016