summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
Diffstat (limited to 'jjb')
-rw-r--r--jjb/releng/testapi-automate.yml77
1 files changed, 77 insertions, 0 deletions
diff --git a/jjb/releng/testapi-automate.yml b/jjb/releng/testapi-automate.yml
new file mode 100644
index 000000000..10b37596a
--- /dev/null
+++ b/jjb/releng/testapi-automate.yml
@@ -0,0 +1,77 @@
+- project:
+ name: testapi-automate
+
+ project: 'releng'
+
+ stream:
+ - master:
+ branch: '{stream}'
+
+ jobs:
+ - 'testapi-automate-{stream}'
+
+- job-template:
+ name: 'testapi-automate-{stream}'
+
+ parameters:
+ - 'opnfv-build-defaults'
+
+ scm:
+ - git-scm
+
+ triggers:
+ - gerrit:
+ server-name: 'gerrit.opnfv.org'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'false'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck'
+ - comment-added-contains-event:
+ comment-contains-value: 'reverify'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'ANT'
+ pattern: 'utils/**'
+
+ builders:
+ - start-testapi-server
+ - testapi-doc-build
+ - upload-doc-artifact
+ - clean-testapi-server
+
+################################
+# job builders
+################################
+
+- builder:
+ name: testapi-doc-build
+ builders:
+ - shell: |
+ python ./utils/test/testapi/htmlize/htmlize.py -o ${WORKSPACE}/
+
+- builder:
+ name: start-testapi-server
+ builders:
+ - shell: |
+ !include-raw: ../../utils/test/testapi/htmlize/prepare.sh
+
+- builder:
+ name: clean-testapi-server
+ builders:
+ - shell: |
+ !include-raw: ../../utils/test/testapi/htmlize/finish.sh
+
+- builder:
+ name: upload-doc-artifact
+ builders:
+ - shell: |
+ !include-raw: ../../utils/test/testapi/htmlize/push-doc-artifact.sh