From 0d87caa1b785588ffb9a92f37420bc688ebed01d Mon Sep 17 00:00:00 2001 From: rohitsakala Date: Fri, 16 Dec 2016 00:38:41 +0530 Subject: 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 --- jjb/releng/testapi-automate.yml | 77 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 jjb/releng/testapi-automate.yml (limited to 'jjb') 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 -- cgit 1.2.3-korg