summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorrohitsakala <rohitsakala@gmail.com>2016-12-16 00:38:41 +0530
committerrohitsakala <rohitsakala@gmail.com>2017-01-04 17:41:38 +0530
commit0d87caa1b785588ffb9a92f37420bc688ebed01d (patch)
treede1800996bf81f687c4fa5aba28dac74f99711bb /jjb
parent508f72a1bec40410e1c008f13fbdfaf2cf56611d (diff)
Create Jenkins Job for testapi automation
Right now, only builder for creating testapi doc is included JIRA: FUNCTEST-664 Change-Id: If0a34154084c1d01ed6b997d2226779da43bcb14 Signed-off-by: rohitsakala <rohitsakala@gmail.com>
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