Merge "Filter out added/modified *.ipynb for preview job"
authorSerena Feng <feng.xiaowei@zte.com.cn>
Thu, 7 Dec 2017 18:52:46 +0000 (18:52 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 7 Dec 2017 18:52:46 +0000 (18:52 +0000)
jjb/qtip/qtip-verify-jobs.yml

index 047d7f2..f772e39 100644 (file)
 
           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