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 865 B

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