forked from microsoft/MSBuildLocator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
91 lines (77 loc) · 2.43 KB
/
azure-pipelines.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
pool:
name: VSEngSS-MicroBuild2022-1ES
demands: msbuild
variables:
BuildConfiguration: 'Release'
BuildPlatform: ''
Codeql.Enabled: true
steps:
- task: MicroBuildSigningPlugin@1
inputs:
signType: '$(SignType)'
zipSources: true
- task: MSBuild@1
displayName: '/t:Pack'
inputs:
solution: MSBuildLocator.sln
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
msbuildArguments: '/t:Pack /restore -binaryLogger:$(Build.SourcesDirectory)\Pack.binlog'
- task: CopyFiles@2
displayName: 'Collect Symbols'
inputs:
SourceFolder: src/MSBuildLocator
Contents: '**\*.pdb'
TargetFolder: '$(Build.ArtifactStagingDirectory)/symbols'
CleanTargetFolder: true
- task: PublishSymbols@2
displayName: 'Enable Source Server'
inputs:
SymbolsFolder: '$(Build.ArtifactStagingDirectory)\symbols'
SearchPattern: '**/*.pdb'
SymbolServerType: TeamServices
- task: PublishBuildArtifacts@1
displayName: 'Upload Symbols Artifact'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/symbols'
ArtifactName: Symbols
- task: CopyFiles@2
displayName: 'Copy Bin to drop'
inputs:
SourceFolder: 'src\MSBuildLocator\bin\Release'
TargetFolder: '$(Build.ArtifactStagingDirectory)\bin'
- task: PublishBuildArtifacts@1
displayName: 'Upload Bin to drop'
inputs:
PathToPublish: '$(Build.ArtifactStagingDirectory)\bin'
ArtifactName: bin
- task: CopyFiles@2
displayName: 'Copy NuGet to drop'
inputs:
SourceFolder: 'src\MSBuildLocator\bin\Release'
Contents: '*.nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)\pkg'
- task: PublishBuildArtifacts@1
displayName: 'Upload NuGet to drop'
inputs:
PathToPublish: '$(Build.ArtifactStagingDirectory)\pkg'
ArtifactName: pkg
- task: PublishPipelineArtifact@1
displayName: 'Upload MicroBuildOutputs to drop'
inputs:
TargetPath: '$(Build.StagingDirectory)\MicroBuild\Output'
ArtifactName: MicroBuildOutputs
continueOnError: true
- task: CopyFiles@2
displayName: 'Copy logs to drop'
inputs:
Contents: '**\*.*log'
TargetFolder: '$(Build.ArtifactStagingDirectory)\logs'
- task: PublishBuildArtifacts@1
displayName: 'Upload logs to drop'
inputs:
PathToPublish: '$(Build.ArtifactStagingDirectory)\logs'
ArtifactName: logs
condition: succeededOrFailed()
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: 'Execute cleanup tasks'