diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-09-26 09:40:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-26 09:40:15 +0000 |
commit | 95ebd0ed6d37d9228b024ecb2f5241abdb252eae (patch) | |
tree | f66d530f6aa68422438be077cfb5121bff46c6c5 | |
parent | b052e7c4b5a8c34182c9c2e53c2fed261a4cc339 (diff) | |
parent | 97047a512a51bd3c31dc9b5a47e7628984adc9ae (diff) |
Merge "Monitor all .ipynb for notebook preview"
-rw-r--r-- | jjb/qtip/qtip-verify-jobs.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/jjb/qtip/qtip-verify-jobs.yml b/jjb/qtip/qtip-verify-jobs.yml index a91972823..047d7f2be 100644 --- a/jjb/qtip/qtip-verify-jobs.yml +++ b/jjb/qtip/qtip-verify-jobs.yml @@ -8,8 +8,8 @@ project: qtip jobs: - 'qtip-verify-{stream}' - - 'qtip-review-notebook-{stream}' - - 'qtip-merge-{stream}' + - 'qtip-verify-notebook-{stream}' + - 'qtip-merged-notebook-{stream}' stream: - master: branch: '{stream}' @@ -69,7 +69,7 @@ # upload juypter notebook to artifacts for review - job-template: - name: 'qtip-review-notebook-{stream}' + name: 'qtip-verify-notebook-{stream}' disabled: '{obj:disabled}' @@ -104,14 +104,14 @@ disable-strict-forbidden-file-verification: 'true' file-paths: - compare-type: ANT - pattern: 'examples/**' + pattern: '**/*.ipynb' builders: - upload-under-review-notebooks-to-opnfv-artifacts - report-build-result-to-gerrit - job-template: - name: 'qtip-merge-{stream}' + name: 'qtip-merged-notebook-{stream}' disabled: '{obj:disabled}' @@ -146,7 +146,7 @@ branch-pattern: '**/{branch}' file-paths: - compare-type: ANT - pattern: examples/** + pattern: '**/*ipynb' builders: - remove-old-docs-from-opnfv-artifacts @@ -178,7 +178,6 @@ export PATH=$PATH:/usr/local/bin/ [[ $GERRIT_CHANGE_NUMBER =~ .+ ]] - [[ -d examples ]] || exit 0 echo echo "###########################" @@ -190,8 +189,9 @@ gs_path="$gs_base/$GERRIT_CHANGE_NUMBER" local_path="upload/$GERRIT_CHANGE_NUMBER" - mkdir -p upload - cp -r examples "$local_path" + mkdir -p $local_path + + git diff HEAD~1 --name-only | grep -E ".+\.ipynb$" | xargs -I '{}' cp '{}' $local_path gsutil -m cp -r "$local_path" "gs://$gs_base/" echo "Document link(s):" >> gerrit_comment.txt |