Disable notebook preview job
[releng.git] / jjb / qtip / qtip-verify-jobs.yml
index 047d7f2..783c92b 100644 (file)
@@ -8,8 +8,6 @@
     project: qtip
     jobs:
       - 'qtip-verify-{stream}'
-      - 'qtip-verify-notebook-{stream}'
-      - 'qtip-merged-notebook-{stream}'
     stream:
       - master:
           branch: '{stream}'
@@ -67,7 +65,8 @@
       - publish-coverage
       - email-jenkins-admins-on-failure
 
-# upload juypter notebook to artifacts for review
+# Upload juypter notebook to artifacts for review
+# TODO(yujunz): deal with *.ipynb deletion
 - job-template:
     name: 'qtip-verify-notebook-{stream}'
 
 
           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