You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

azure-pipelines.yml 849 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. variables:
  2. buildConfiguration: Release
  3. buildTag: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
  4. buildNumber: $[ variables['Build.BuildNumber'] ]
  5. trigger:
  6. tags:
  7. include:
  8. - '*'
  9. branches:
  10. include:
  11. - '*'
  12. jobs:
  13. - job: Linux
  14. pool:
  15. vmImage: 'ubuntu-16.04'
  16. steps:
  17. - template: azure/build.yml
  18. - job: Windows_build
  19. pool:
  20. vmImage: 'vs2017-win2016'
  21. condition: ne(variables['Build.SourceBranch'], 'refs/heads/dev')
  22. steps:
  23. - template: azure/build.yml
  24. - job: Windows_deploy
  25. pool:
  26. vmImage: 'vs2017-win2016'
  27. condition: |
  28. and (
  29. succeeded(),
  30. or (
  31. eq(variables['Build.SourceBranch'], 'refs/heads/dev'),
  32. eq(variables['buildTag'], True)
  33. )
  34. )
  35. steps:
  36. - template: azure/build.yml
  37. - template: azure/deploy.yml
  38. - template: azure/docs.yml