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

.zuul.yaml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # Shared Zuul v3 definitions for OpenStack CI.
  2. # These jobs are used in api-site, openstack-manuals, and security-doc
  3. # repositories.
  4. - job:
  5. name: build-tox-manuals-base
  6. abstract: true
  7. description: |
  8. Base job to build manual related documents. These build jobs
  9. invoke a tox command and expect the published content to be in
  10. publish-docs directory. This content is published on the root of
  11. the website.
  12. Note that this build job does not create a root-marker file,
  13. this has to be done by scripts called from tox.
  14. parent: openstack-tox
  15. nodeset: ubuntu-bionic
  16. success-url: publish-docs/
  17. post-run: playbooks/build-manuals-tox/post.yaml
  18. roles:
  19. - zuul: zuul/zuul-jobs
  20. vars:
  21. tox_environment:
  22. # The tox job writes the root-marker file directly and thus
  23. # needs the following variables set:
  24. ZUUL_PROJECT: '{{ zuul.project.name }}'
  25. ZUUL_BRANCH: '{{ zuul.branch }}'
  26. ZUUL_UUID: '{{ zuul.build }}'
  27. ZUUL_NEWREF: '{{ zuul.ref }}'
  28. - job:
  29. name: build-tox-manuals-checkbuild
  30. parent: build-tox-manuals-base
  31. description: |
  32. Build manuals using "checkbuild" tox environment.
  33. vars:
  34. tox_envlist: checkbuild
  35. - job:
  36. name: build-tox-manuals-checklang
  37. parent: build-tox-manuals-base
  38. description: |
  39. Build translated manuals using "checklang" tox environment.
  40. vars:
  41. tox_envlist: checklang
  42. files:
  43. - ^.*\.po$
  44. - ^.*\.pot$
  45. - ^.*requirements.txt$
  46. - ^bindep.txt
  47. - ^doc-tools-check-languages.conf
  48. - ^tools/
  49. - ^tox.ini
  50. # Templates to easily group jobs.
  51. - project-template:
  52. name: openstack-manuals-jobs
  53. description: |
  54. Runs jobs for non-translated documents.
  55. check:
  56. jobs:
  57. - openstack-tox-linters
  58. - build-tox-manuals-checkbuild
  59. gate:
  60. jobs:
  61. - openstack-tox-linters
  62. - build-tox-manuals-checkbuild
  63. post:
  64. jobs:
  65. - publish-openstack-manuals
  66. - project-template:
  67. name: openstack-manuals-developer-jobs
  68. description: |
  69. Runs jobs for non-translated documents.
  70. This will publish content to developer.openstack.org.
  71. check:
  72. jobs:
  73. - openstack-tox-linters
  74. - build-tox-manuals-checkbuild
  75. gate:
  76. jobs:
  77. - openstack-tox-linters
  78. - build-tox-manuals-checkbuild
  79. post:
  80. jobs:
  81. - publish-openstack-manuals-developer
  82. - project-template:
  83. name: openstack-manuals-build-translation
  84. description: |
  85. Runs jobs to build translated documents.
  86. check:
  87. jobs:
  88. - build-tox-manuals-checklang
  89. gate:
  90. jobs:
  91. - build-tox-manuals-checklang
  92. post:
  93. jobs:
  94. - publish-openstack-manuals-lang
  95. - project-template:
  96. name: openstack-manuals-developer-build-translation
  97. description: |
  98. Runs jobs to build translated documents.
  99. This will publish content to developer.openstack.org.
  100. check:
  101. jobs:
  102. - build-tox-manuals-checklang
  103. gate:
  104. jobs:
  105. - build-tox-manuals-checklang
  106. post:
  107. jobs:
  108. - publish-openstack-manuals-developer-lang
  109. # Configuration for this repository, determines which jobs to run.
  110. - project:
  111. templates:
  112. - openstack-manuals-build-translation
  113. - openstack-manuals-jobs
  114. - release-notes-jobs-python3
  115. post:
  116. jobs:
  117. - propose-updates:
  118. vars:
  119. update_target: openstack-manuals