From 7bd55848c47a228e8608526eed0e797dbd5adc35 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Tue, 5 Dec 2017 13:34:03 -0800 Subject: Filter out added/modified *.ipynb for preview job deleted file can not be previewed Change-Id: Ic860baf0deeb574e20067bdae230cb7ef22d7458 Signed-off-by: Yujun Zhang --- jjb/qtip/qtip-verify-jobs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jjb') diff --git a/jjb/qtip/qtip-verify-jobs.yml b/jjb/qtip/qtip-verify-jobs.yml index 047d7f2be..f772e3917 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 -- cgit 1.2.3-korg