summaryrefslogtreecommitdiffstats
path: root/jjb/qtip
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-07-19 15:32:05 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-07-19 16:34:05 +0800
commit6b381a30d4dfc05d1569d2115c024633de35c2b7 (patch)
tree844bf361ef546c174a249ccd70c284846f2c845c /jjb/qtip
parent3df5a90ac1c17917ae390f28352122c673240ef6 (diff)
Fix document review job for QTIP
- missing '/' in upload path - missing build result report to gerrit - notebook review job should be limited for changes in example/** folder Change-Id: I83d09157077306128a6db66429d8a402f2e7c69e Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'jjb/qtip')
-rw-r--r--jjb/qtip/qtip-verify-jobs.yml46
1 files changed, 44 insertions, 2 deletions
diff --git a/jjb/qtip/qtip-verify-jobs.yml b/jjb/qtip/qtip-verify-jobs.yml
index 197f32aec..57d24b432 100644
--- a/jjb/qtip/qtip-verify-jobs.yml
+++ b/jjb/qtip/qtip-verify-jobs.yml
@@ -7,6 +7,7 @@
project: qtip
jobs:
- 'qtip-verify-{stream}'
+ - 'qtip-review-notebook-{stream}'
- 'qtip-merge-{stream}'
stream:
- master:
@@ -61,10 +62,51 @@
builders:
- qtip-unit-tests-and-docs-build
- - upload-under-review-notebooks-to-opnfv-artifacts
publishers:
- publish-coverage
+# upload juypter notebook to artifacts for review
+- job-template:
+ name: 'qtip-review-notebook-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ branch: '{branch}'
+ - 'opnfv-build-ubuntu-defaults'
+
+ scm:
+ - git-scm-gerrit
+
+ 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}'
+ disable-strict-forbidden-file-verification: 'true'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'examples/**'
+ builders:
+ - upload-under-review-notebooks-to-opnfv-artifacts
+ - report-build-result-to-gerrit
+
- job-template:
name: 'qtip-merge-{stream}'
@@ -146,7 +188,7 @@
mkdir -p upload
cp -r examples "$local_path"
- gsutil -m cp -r "$local_path" "gs://$gs_base"
+ gsutil -m cp -r "$local_path" "gs://$gs_base/"
echo "Document link(s):" >> gerrit_comment.txt
find "$local_path" | grep -e 'ipynb$' | \