10 - 'qtip-verify-{stream}'
11 - 'qtip-verify-notebook-{stream}'
12 - 'qtip-merged-notebook-{stream}'
19 branch: 'stable/{stream}'
20 gs-pathname: '/{stream}'
23 ################################
25 #################################
27 name: 'qtip-verify-{stream}'
29 disabled: '{obj:disabled}'
35 - 'opnfv-build-ubuntu-defaults'
42 server-name: 'gerrit.opnfv.org'
44 - patchset-created-event:
45 exclude-drafts: 'false'
46 exclude-trivial-rebase: 'false'
47 exclude-no-code-change: 'false'
48 - draft-published-event
49 - comment-added-contains-event:
50 comment-contains-value: 'recheck'
51 - comment-added-contains-event:
52 comment-contains-value: 'reverify'
54 - project-compare-type: 'ANT'
55 project-pattern: '{project}'
57 - branch-compare-type: 'ANT'
58 branch-pattern: '**/{branch}'
59 disable-strict-forbidden-file-verification: 'true'
62 pattern: 'docs/**|.gitignore'
65 - qtip-unit-tests-and-docs-build
68 - email-jenkins-admins-on-failure
70 # upload juypter notebook to artifacts for review
72 name: 'qtip-verify-notebook-{stream}'
74 disabled: '{obj:disabled}'
80 - 'opnfv-build-ubuntu-defaults'
87 server-name: 'gerrit.opnfv.org'
89 - patchset-created-event:
90 exclude-drafts: 'false'
91 exclude-trivial-rebase: 'false'
92 exclude-no-code-change: 'false'
93 - draft-published-event
94 - comment-added-contains-event:
95 comment-contains-value: 'recheck'
96 - comment-added-contains-event:
97 comment-contains-value: 'reverify'
99 - project-compare-type: 'ANT'
100 project-pattern: '{project}'
102 - branch-compare-type: 'ANT'
103 branch-pattern: '**/{branch}'
104 disable-strict-forbidden-file-verification: 'true'
107 pattern: '**/*.ipynb'
110 - upload-under-review-notebooks-to-opnfv-artifacts
111 - report-build-result-to-gerrit
114 name: 'qtip-merged-notebook-{stream}'
116 disabled: '{obj:disabled}'
120 project: $GERRIT_PROJECT
124 default: '$GS_BASE{gs-pathname}'
125 description: "Directory where the build artifact will be located upon the completion of the build."
128 default: 'refs/heads/{branch}'
129 description: "JJB configured GERRIT_REFSPEC parameter"
136 server-name: 'gerrit.opnfv.org'
138 - change-merged-event
139 - comment-added-contains-event:
140 comment-contains-value: 'remerge'
142 - project-compare-type: 'ANT'
145 - branch-compare-type: 'ANT'
146 branch-pattern: '**/{branch}'
152 - remove-old-docs-from-opnfv-artifacts
154 ################################
156 #################################
158 name: qtip-unit-tests-and-docs-build
168 # modified from upload-under-review-docs-to-opnfv-artifacts
169 # in global/releng-macro.yml
171 name: upload-under-review-notebooks-to-opnfv-artifacts
178 export PATH=$PATH:/usr/local/bin/
180 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
183 echo "###########################"
184 echo "UPLOADING DOCS UNDER REVIEW"
185 echo "###########################"
188 gs_base="artifacts.opnfv.org/$PROJECT/review"
189 gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
190 local_path="upload/$GERRIT_CHANGE_NUMBER"
194 git diff HEAD~1 --name-only | grep -E ".+\.ipynb$" | xargs -I '{}' cp '{}' $local_path
195 gsutil -m cp -r "$local_path" "gs://$gs_base/"
197 echo "Document link(s):" >> gerrit_comment.txt
198 find "$local_path" | grep -e 'ipynb$' | \
199 sed -e "s|^$local_path| https://nbviewer.jupyter.org/url/$gs_path|" >> gerrit_comment.txt