docs: fix yardstick docs builder 87/9087/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Tue, 2 Feb 2016 23:56:21 +0000 (08:56 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Tue, 2 Feb 2016 23:57:12 +0000 (08:57 +0900)
Change-Id: I7b3e08a8f5950515bfd0d8e94948f71d395aec7b
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
jjb/yardstick/yardstick-project-jobs.yml

index bfe343f..91138e5 100644 (file)
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/{branch}'
     builders:
-        - shell: |
-            #!/bin/bash
-            set -o errexit
-            set -o pipefail
-
-            echo "Running unit tests..."
-            cd $WORKSPACE
-            virtualenv $WORKSPACE/yardstick_venv
-            source $WORKSPACE/yardstick_venv/bin/activate
-            easy_install -U setuptools
-            python setup.py develop
-            ./run_tests.sh
-        - generate-api-docs-for-yardstick
-        - upload-review-docs
-        - shell: 'deactivate'
+        - yardstick-unit-tests-and-docs-build
+        - upload-under-review-docs-to-opnfv-artifacts
+        - report-docs-build-result-to-gerrit
 
 - job-template:
     name: 'yardstick-merge-{stream}'
                     - branch-compare-type: 'ANT'
                       branch-pattern: '**/{branch}'
 
+    builders:
+        - yardstick-unit-tests-and-docs-build
+        - upload-generated-docs-to-opnfv-artifacts
+        - report-docs-build-result-to-gerrit
+        - remove-old-docs-from-opnfv-artifacts
+
+################################
+# job builders
+################################
+
+- builder:
+    name: yardstick-unit-tests-and-docs-build
     builders:
         - shell: |
             #!/bin/bash
             source $WORKSPACE/yardstick_venv/bin/activate
             easy_install -U setuptools
             python setup.py develop
+
+            # unit tests
             ./run_tests.sh
-        - generate-api-docs-for-yardstick
-        - upload-merged-docs
-        - shell: 'deactivate'
 
-################################
-# job builders
-################################
+            # generate api doc sources
+            sphinx-apidoc -o docs/apidocs yardstick
 
-- builder:
-    name: generate-api-docs-for-yardstick
-    builders:
-        - shell: |
-            #!/bin/bash
-            set -o errexit
-            set -o pipefail
+            # build docs
+            git clone ssh://gerrit.opnfv.org:29418/releng
+            GERRIT_COMMENT=gerrit_comment.txt ./releng/utils/docs-build.sh
 
-            sphinx-apidoc -o docs/apidocs yardstick
+            deactivate