diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-01-05 05:54:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-05 05:54:34 +0000 |
commit | 212e6f19f2a8a6c0da35454edada9f71e627ea78 (patch) | |
tree | 494cbdf0d6989ebb882b18746baab88fc50d0d09 /jjb | |
parent | c12d2acd95269363db527bae50b16cd77fb00351 (diff) | |
parent | 0d87caa1b785588ffb9a92f37420bc688ebed01d (diff) |
Merge "Create Jenkins Job for testapi automation"
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/releng/testapi-automate.yml | 77 |
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 |