forked from dotnet/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
81 lines (66 loc) · 2.63 KB
/
.vsts-ci.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
resources:
- repo: self
clean: true
queue:
name: VSEng-MicroBuildVS2017
demands: Cmd
variables:
DropRoot: '\\cpvsbuild\drops'
BuildConfiguration: Release
BuildPlatform: 'any cpu'
RunningInMicroBuild: true
TeamName: Roslyn
steps:
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
displayName: 'Install Signing Plugin'
inputs:
signType: real
- task: ms-vseng.MicroBuildTasks.32f78468-e895-4f47-962c-58a699361df8.MicroBuildSwixPlugin@1
displayName: 'Install Swix Plugin'
inputs:
dropName: 'Products/$(System.TeamProject)/dotnet-getting-started-templates/$(Build.SourceBranchName)/$(Build.BuildNumber)'
- task: BatchScript@1
displayName: 'Run script CIBuild.cmd'
inputs:
filename: 'build\CIBuild.cmd'
arguments: '-configuration $(BuildConfiguration)'
continueOnError: true
- task: PublishSymbols@1
displayName: 'Create Symbol Index'
inputs:
SymbolsPath: '$(DropRoot)\Roslyn\$(Build.DefinitionName)\$(Build.BuildNumber)\Symbols'
SearchPattern: '**\*.pdb;**\*.exe;**\*.dll'
SymbolsFolder: '$(Build.SourcesDirectory)\artifacts\$(BuildConfiguration)\SymStore'
SkipIndexing: true
continueOnError: true
- task: ms-vscs-artifact.build-tasks.artifactSymbolTask-1.artifactSymbolTask@0
displayName: 'Publish to Symbols to Artifact Services'
inputs:
symbolServiceURI: 'https://microsoft.artifacts.visualstudio.com/DefaultCollection'
requestName: '$(system.teamProject)/$(Build.DefinitionName)/$(Build.BuildNumber)/$(Build.BuildId)'
sourcePath: '$(DropRoot)\Roslyn\$(Build.DefinitionName)\$(Build.BuildNumber)\Symbols'
usePat: false
- task: ms-vseng.MicroBuildTasks.4305a8de-ba66-4d8b-b2d1-0dc4ecbbf5e8.MicroBuildUploadVstsDropFolder@1
displayName: 'Upload VSTS Drop'
inputs:
DropFolder: 'artifacts\$(BuildConfiguration)\VSSetup\Insertion'
- task: CopyPublishBuildArtifacts@1
displayName: 'Publish Drop'
inputs:
CopyRoot: '$(Build.SourcesDirectory)'
Contents: |
artifacts\$(BuildConfiguration)\bin
artifacts\$(BuildConfiguration)\log
artifacts\$(BuildConfiguration)\VSSetup
ArtifactName: '$(Build.BuildNumber)'
ArtifactType: FilePath
TargetPath: '$(DropRoot)\Roslyn\$(Build.DefinitionName)'
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: 'Execute cleanup tasks'
- task: PublishBuildArtifacts@1
displayName: 'Publish MicroBuild Outputs'
inputs:
PathtoPublish: '$(Build.StagingDirectory)\MicroBuild\Output'
ArtifactName: '$(Build.BuildNumber)'
publishLocation: FilePath
TargetPath: '$(DropRoot)\$(TeamName)\$(Build.DefinitionName)'