From 35c0b73de481bc3f4aff61152decf2ffba355185 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 24 Sep 2013 22:02:51 +0200 Subject: [PATCH] Create new gates for openstack-manuals Trunk and future stable branches will be checked by the new test.py tool that implements four different checks. The syntax and build ones should be run also as gate jobs. Syntax is needed for checking of files that are not included in any books. The niceness check is non-voting at the moment. Change-Id: I45aff5a13e39a96134ed4a0353d15059e9e4af64 --- .../config/manuals-jobs.yaml | 11 +++++++++++ .../jenkins_job_builder/config/manuals.yaml | 2 ++ .../jenkins_job_builder/config/projects.yaml | 8 ++++++++ .../openstack_project/files/zuul/layout.yaml | 18 ++++++++++++++++++ 4 files changed, 39 insertions(+) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/manuals-jobs.yaml b/modules/openstack_project/files/jenkins_job_builder/config/manuals-jobs.yaml index cf4faca188..b47d15e329 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/manuals-jobs.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/manuals-jobs.yaml @@ -1,3 +1,14 @@ +- job-template: + name: gate-openstack-manuals-validate-{check} + node: precise + + builders: + - gerrit-git-prep + - shell: "./tools/test.py --check-{check}" + + publishers: + - console-log + - job-template: name: 'openstack-{manual}' project-type: maven diff --git a/modules/openstack_project/files/jenkins_job_builder/config/manuals.yaml b/modules/openstack_project/files/jenkins_job_builder/config/manuals.yaml index 1be390a72d..641c1062e5 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/manuals.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/manuals.yaml @@ -24,6 +24,8 @@ keep-hierarchy: true copy-after-failure: true +# in zuul/layout.yaml specified to only run against stable/folsom and grizzly +# branches. - job: name: gate-openstack-manuals-validate node: precise diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml index c05295fcb8..af4ca35705 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -1397,6 +1397,12 @@ - project: name: manuals + check: + - niceness + - syntax + - deletions + - build + manual: - admin-guide-cloud - config-reference @@ -1413,6 +1419,8 @@ - network-connectivity-admin jobs: + - gate-openstack-manuals-validate-{check} + - 'openstack-{manual}' - openstack-install-deploy-guide-{distribution}: diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 606ec726be..5c3fe01280 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -207,6 +207,15 @@ jobs: branch: ^(?!stable/(folsom|grizzly)).*$ - name: openstack-install-deploy-guide-ubuntu branch: ^(?!stable/(folsom|grizzly)).*$ + - name: gate-openstack-manuals-validate-niceness + branch: ^(?!stable/(folsom|grizzly)).*$ + voting: false + - name: gate-openstack-manuals-validate-syntax + branch: ^(?!stable/(folsom|grizzly)).*$ + - name: gate-openstack-manuals-validate-deletions + branch: ^(?!stable/(folsom|grizzly)).*$ + - name: gate-openstack-manuals-validate-build + branch: ^(?!stable/(folsom|grizzly)).*$ # Deprecated documentation targets: - name: openstack-block-storage-admin-old branch: stable/(grizzly|folsom) @@ -222,6 +231,8 @@ jobs: branch: stable/(grizzly|folsom) - name: openstack-openstack-install-ubuntu-old branch: stable/(grizzly|folsom) + - name: gate-openstack-manuals-validate + branch: stable/(grizzly|folsom) - name: ^gate-.*-docs$ success-pattern: http://docs-draft.openstack.org/{build.parameters[LOG_PATH]}/doc/build/html/ - name: infra-publications-publish @@ -2018,8 +2029,15 @@ projects: - name: openstack/openstack-manuals check: + - gate-openstack-manuals-validate-niceness + - gate-openstack-manuals-validate-syntax + - gate-openstack-manuals-validate-deletions + - gate-openstack-manuals-validate-build - gate-openstack-manuals-validate gate: + - gate-openstack-manuals-validate-syntax + - gate-openstack-manuals-validate-deletions + - gate-openstack-manuals-validate-build - gate-openstack-manuals-validate post: - openstack-admin-guide-cloud