Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Disable the triggers for euphrates in armband
[releng.git]
/
jjb
/
qtip
/
qtip-verify-jobs.yml
diff --git
a/jjb/qtip/qtip-verify-jobs.yml
b/jjb/qtip/qtip-verify-jobs.yml
index
26a9706
..
783c92b
100644
(file)
--- a/
jjb/qtip/qtip-verify-jobs.yml
+++ b/
jjb/qtip/qtip-verify-jobs.yml
@@
-8,14
+8,12
@@
project: qtip
jobs:
- 'qtip-verify-{stream}'
project: qtip
jobs:
- 'qtip-verify-{stream}'
- - 'qtip-review-notebook-{stream}'
- - 'qtip-merge-{stream}'
stream:
- master:
branch: '{stream}'
gs-pathname: ''
disabled: false
stream:
- master:
branch: '{stream}'
gs-pathname: ''
disabled: false
- -
danube
:
+ -
euphrates
:
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
disabled: false
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
disabled: false
@@
-67,9
+65,10
@@
- publish-coverage
- email-jenkins-admins-on-failure
- 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:
- job-template:
- name: 'qtip-
review
-notebook-{stream}'
+ name: 'qtip-
verify
-notebook-{stream}'
disabled: '{obj:disabled}'
disabled: '{obj:disabled}'
@@
-104,14
+103,14
@@
disable-strict-forbidden-file-verification: 'true'
file-paths:
- compare-type: ANT
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:
builders:
- upload-under-review-notebooks-to-opnfv-artifacts
- report-build-result-to-gerrit
- job-template:
- name: 'qtip-merge-{stream}'
+ name: 'qtip-merge
d-notebook
-{stream}'
disabled: '{obj:disabled}'
disabled: '{obj:disabled}'
@@
-146,7
+145,7
@@
branch-pattern: '**/{branch}'
file-paths:
- compare-type: ANT
branch-pattern: '**/{branch}'
file-paths:
- compare-type: ANT
- pattern:
examples/**
+ pattern:
'**/*ipynb'
builders:
- remove-old-docs-from-opnfv-artifacts
builders:
- remove-old-docs-from-opnfv-artifacts
@@
-178,7
+177,6
@@
export PATH=$PATH:/usr/local/bin/
[[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
export PATH=$PATH:/usr/local/bin/
[[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
- [[ -d examples ]] || exit 0
echo
echo "###########################"
echo
echo "###########################"
@@
-190,8
+188,10
@@
gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
local_path="upload/$GERRIT_CHANGE_NUMBER"
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-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
gsutil -m cp -r "$local_path" "gs://$gs_base/"
echo "Document link(s):" >> gerrit_comment.txt