re-enable doc building jobs

Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem argoncha <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem argoncha <artem.goncharov@t-systems.com>
This commit is contained in:
Goncharov, Artem argoncha 2022-07-21 14:01:41 +00:00 committed by zuul
parent 6d76e8ec08
commit 71825840f7
4 changed files with 58 additions and 7 deletions

View File

@ -4,11 +4,11 @@ docs:
service: ma
type: umn
html_location: docs/modelarts/umn
repository: opentelekomcloud-docs/modelarts
repository: docs/modelarts
project_location: /umn/source
- label: ma_api
service: ma
type: api-ref
html_location: docs/modelarts/api-ref
repository: opentelekomcloud-docs/modelarts
repository: docs/modelarts
project_location: /api-ref/source

View File

@ -4,17 +4,17 @@ docs:
service: ecs
type: umn
html_location: docs/ecs/umn
repository: opentelekomcloud-docs/elastic-cloud-server
repository: docs/elastic-cloud-server
project_location: /umn/source
- label: ecs_api
service: ecs
type: api-ref
html_location: docs/ecs/api-ref
repository: opentelekomcloud-docs/elastic-cloud-server
repository: docs/elastic-cloud-server
project_location: /api-ref/source
- label: ecs_dev
service: ecs
type: dev-guide
html_location: docs/ecs/dev
repository: opentelekomcloud-docs/elastic-cloud-server
repository: docs/elastic-cloud-server
project_location: /dev_guide/source

View File

@ -4,6 +4,11 @@
- name: Read project docs configuration
include_vars: "{{ docs_update_data_file }}"
- name: Save doc var
ansible.builtin.set_fact:
doc_exports_vars: "{{ docs }}"
cacheable: true
- name: Detect list of changes
command: "git log -1 --name-only --pretty="
args:
@ -15,7 +20,7 @@
command: "git config --global user.name 'OpenTelekomCloud Proposal Bot'"
- name: Configure git user email
command: "git config --global user.email 52695153+otcbot@users.noreply.github.com"
command: "git config --global user.email otcbot@otc-service.com"
- name: Generate new RSTs
include_role:

View File

@ -1,3 +1,43 @@
---
- job:
name: otc-doc-exports-convert-base
parent: unittests
abstract: true
nodeset: vm
description: |
Convert doc exports from html to rst and generate corresponding rst diff
files.
pre-run: playbooks/pre.yaml
run: playbooks/run.yaml
post-run: playbooks/post.yaml
- job:
name: otc-doc-exports-convert-compute
parent: otc-doc-exports-convert-base
description: |
Convert Compute doc exports from html to rst and generate
corresponding rst patch files.
files:
- otc_doc_convertor
- docs/ecs
- roles
provides: otc-doc-exports-convert-compute
vars:
docs_update_data_file: "docs_compute.yaml"
- job:
name: otc-doc-exports-convert-big-data
parent: otc-doc-exports-convert-base
description: |
Convert BigData doc exports from html to rst and generate
corresponding rst patch files.
files:
- otc_doc_convertor
- docs/modelarts
- roles
vars:
docs_update_data_file: "docs_big-data.yaml"
- project:
merge-mode: squash-merge
default-branch: main
@ -6,11 +46,17 @@
docs_base_location: "base"
docs_new_location: "new"
ensure_pandoc_version: "2.18"
propose_change_git_provider: "gitea"
propose_change_git_baseurl: "gitea.eco.tsi-dev.otc-service.com"
check:
jobs:
- otc-tox-pep8:
nodeset: ubuntu-focal
- otc-doc-exports-convert-compute
- otc-doc-exports-convert-big-data
gate:
jobs:
- otc-tox-pep8:
nodeset: ubuntu-focal
nodeset: ubuntu-focal
- otc-doc-exports-convert-compute
- otc-doc-exports-convert-big-data