roslyn-sdk/.vsts-ci.yml

61 строка
2.1 KiB
YAML

resources:
- repo: self
clean: true
queue:
name: VSEng-MicroBuildVS2017
demands: Cmd
variables:
BuildConfiguration: Release
BuildPlatform: any cpu
TeamName: Roslyn-SDK
DropRoot: \\cpvsbuild\drops\Roslyn
steps:
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
displayName: Install Signing Plugin
inputs:
signType: real
esrpSigning: true
- task: ms-vseng.MicroBuildTasks.32f78468-e895-4f47-962c-58a699361df8.MicroBuildSwixPlugin@1
displayName: Install Swix Plugin
- script: eng\common\CIBuild.cmd
-configuration $(BuildConfiguration)
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
displayName: Build
- task: ms-vseng.MicroBuildTasks.4305a8de-ba66-4d8b-b2d1-0dc4ecbbf5e8.MicroBuildUploadVstsDropFolder@1
displayName: Publish VS Insertion Artifacts
inputs:
DropFolder: 'artifacts\$(BuildConfiguration)\VSSetup\Insertion'
- task: CopyPublishBuildArtifacts@1
displayName: Publish Artifacts
inputs:
CopyRoot: '$(Build.SourcesDirectory)'
Contents: |
artifacts\$(BuildConfiguration)\bin
artifacts\$(BuildConfiguration)\log
artifacts\$(BuildConfiguration)\TestResults
artifacts\$(BuildConfiguration)\SymStore
artifacts\$(BuildConfiguration)\packages
artifacts\$(BuildConfiguration)\VSSetup
ArtifactName: '$(Build.BuildNumber)'
ArtifactType: FilePath
TargetPath: '$(DropRoot)\$(TeamName)\$(Build.SourceBranchName)\$(Build.DefinitionName)'
condition: succeededOrFailed()
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Cleanup
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: Publish MicroBuild Artifacts
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\MicroBuild\Output'
ArtifactName: '$(Build.BuildNumber)'
publishLocation: FilePath
TargetPath: '$(DropRoot)\$(TeamName)\$(Build.SourceBranchName)\$(Build.DefinitionName)'
condition: succeededOrFailed()