diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-11-20 07:37:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-11-20 07:37:51 +0000 |
commit | 871235891d792631dc0d2d4c2af89141fa5928e4 (patch) | |
tree | 4c39984671f708851bba04826b131edbf3e12c1f | |
parent | a3af06b28b81c6fc0de69c8a6186c2685f5609ce (diff) | |
parent | 2850144e4854bfcb4af7557aaa7b5541afee24b1 (diff) |
Merge "Adding a new verification job for testapi UI."
-rw-r--r-- | jjb/releng/testresults-verify.yaml | 63 |
1 files changed, 61 insertions, 2 deletions
diff --git a/jjb/releng/testresults-verify.yaml b/jjb/releng/testresults-verify.yaml index 958833c0f..c4f4c0f0b 100644 --- a/jjb/releng/testresults-verify.yaml +++ b/jjb/releng/testresults-verify.yaml @@ -12,6 +12,7 @@ jobs: - '{module}-verify-{stream}' - '{module}-client-verify-{stream}' + - '{module}-ui-verify-{stream}' project: 'releng-testresults' @@ -30,7 +31,7 @@ triggers: - gerrit-trigger-patchset-created: server: 'gerrit.opnfv.org' - project: '**' + project: '{project}' branch: '{branch}' files: '{module}/**' @@ -61,7 +62,7 @@ triggers: - gerrit-trigger-patchset-created: server: 'gerrit.opnfv.org' - project: '**' + project: '{project}' branch: '{branch}' files: '{module}/{module}-client/**' @@ -76,3 +77,61 @@ publishers: - publish-coverage - email-jenkins-admins-on-failure + +- job-template: + name: '{module}-ui-verify-{stream}' + + parameters: + - project-parameter: + project: '{project}' + branch: '{branch}' + - 'opnfv-build-ubuntu-defaults' + + scm: + - git-scm-gerrit + + wrappers: + - nodejs-installator: + name: "testapi node" + + triggers: + - gerrit-trigger-patchset-created: + server: 'gerrit.opnfv.org' + project: '{project}' + branch: '{branch}' + files: '{module}/opnfv_testapi/ui/**' + + builders: + - shell: | + set -e + + if ! which google-chrome > /dev/null; then + #Install Google Chrome + wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - + echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee \ + /etc/apt/sources.list.d/google-chrome.list + sudo apt-get update + sudo apt-get install -y google-chrome-stable + fi + + npm -v + node -v + cd ./{module}/opnfv_testapi/ui/ + npm install -g grunt-cli + npm install + grunt e2e + mv ../tests/UI/coverage/cobertura-coverage.xml ../../../coverage.xml # Moving coverage \ + # xml to workspace as required by publish-coverage publisher. + + publishers: + - text-finder-failures + - publish-coverage + - email-jenkins-admins-on-failure + +- publisher: + name: 'text-finder-failures' + publishers: + - text-finder: + regexp: " 0 failures" + also-check-console-output: true + succeed-if-found: true |