summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhangyujun@gmail.com>2017-12-05 13:34:03 -0800
committerYujun Zhang <zhangyujun@gmail.com>2017-12-05 13:38:23 -0800
commit7bd55848c47a228e8608526eed0e797dbd5adc35 (patch)
treeb998f4bf0dc96f73681c99407cd2a42b3fa5fdd3
parentaeb2fa169ad452f0031ee6582fe1c9b4f47f68c2 (diff)
Filter out added/modified *.ipynb for preview job
deleted file can not be previewed Change-Id: Ic860baf0deeb574e20067bdae230cb7ef22d7458 Signed-off-by: Yujun Zhang <zhangyujun@gmail.com>
-rw-r--r--jjb/qtip/qtip-verify-jobs.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/jjb/qtip/qtip-verify-jobs.yml b/jjb/qtip/qtip-verify-jobs.yml
index 047d7f2..f772e39 100644
--- a/jjb/qtip/qtip-verify-jobs.yml
+++ b/jjb/qtip/qtip-verify-jobs.yml
@@ -191,7 +191,8 @@
mkdir -p $local_path
- git diff HEAD~1 --name-only | grep -E ".+\.ipynb$" | xargs -I '{}' cp '{}' $local_path
+ git diff HEAD~1 --name-status | grep -E "[AM]\t.+\.ipynb$" | awk '{print $2}' \
+ | xargs -I '{}' cp '{}' $local_path
gsutil -m cp -r "$local_path" "gs://$gs_base/"
echo "Document link(s):" >> gerrit_comment.txt