10 - 'qtip-verify-{stream}'
17 branch: 'stable/{stream}'
18 gs-pathname: '/{stream}'
21 ################################
23 #################################
25 name: 'qtip-verify-{stream}'
27 disabled: '{obj:disabled}'
33 - 'opnfv-build-ubuntu-defaults'
40 server-name: 'gerrit.opnfv.org'
42 - patchset-created-event:
43 exclude-drafts: 'false'
44 exclude-trivial-rebase: 'false'
45 exclude-no-code-change: 'false'
46 - draft-published-event
47 - comment-added-contains-event:
48 comment-contains-value: 'recheck'
49 - comment-added-contains-event:
50 comment-contains-value: 'reverify'
52 - project-compare-type: 'ANT'
53 project-pattern: '{project}'
55 - branch-compare-type: 'ANT'
56 branch-pattern: '**/{branch}'
57 disable-strict-forbidden-file-verification: 'true'
60 pattern: 'docs/**|.gitignore'
63 - qtip-unit-tests-and-docs-build
66 - email-jenkins-admins-on-failure
68 # Upload juypter notebook to artifacts for review
69 # TODO(yujunz): deal with *.ipynb deletion
71 name: 'qtip-verify-notebook-{stream}'
73 disabled: '{obj:disabled}'
79 - 'opnfv-build-ubuntu-defaults'
86 server-name: 'gerrit.opnfv.org'
88 - patchset-created-event:
89 exclude-drafts: 'false'
90 exclude-trivial-rebase: 'false'
91 exclude-no-code-change: 'false'
92 - draft-published-event
93 - comment-added-contains-event:
94 comment-contains-value: 'recheck'
95 - comment-added-contains-event:
96 comment-contains-value: 'reverify'
98 - project-compare-type: 'ANT'
99 project-pattern: '{project}'
101 - branch-compare-type: 'ANT'
102 branch-pattern: '**/{branch}'
103 disable-strict-forbidden-file-verification: 'true'
106 pattern: '**/*.ipynb'
109 - upload-under-review-notebooks-to-opnfv-artifacts
110 - report-build-result-to-gerrit
113 name: 'qtip-merged-notebook-{stream}'
115 disabled: '{obj:disabled}'
119 project: $GERRIT_PROJECT
123 default: '$GS_BASE{gs-pathname}'
124 description: "Directory where the build artifact will be located upon the completion of the build."
131 server-name: 'gerrit.opnfv.org'
133 - change-merged-event
134 - comment-added-contains-event:
135 comment-contains-value: 'remerge'
137 - project-compare-type: 'ANT'
140 - branch-compare-type: 'ANT'
141 branch-pattern: '**/{branch}'
147 - remove-old-docs-from-opnfv-artifacts
149 ################################
151 #################################
153 name: qtip-unit-tests-and-docs-build
163 # modified from upload-under-review-docs-to-opnfv-artifacts
164 # in global/releng-macro.yml
166 name: upload-under-review-notebooks-to-opnfv-artifacts
173 export PATH=$PATH:/usr/local/bin/
175 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
178 echo "###########################"
179 echo "UPLOADING DOCS UNDER REVIEW"
180 echo "###########################"
183 gs_base="artifacts.opnfv.org/$PROJECT/review"
184 gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
185 local_path="upload/$GERRIT_CHANGE_NUMBER"
189 git diff HEAD~1 --name-status | grep -E "[AM]\t.+\.ipynb$" | awk '{print $2}' \
190 | xargs -I '{}' cp '{}' $local_path
191 gsutil -m cp -r "$local_path" "gs://$gs_base/"
193 echo "Document link(s):" >> gerrit_comment.txt
194 find "$local_path" | grep -e 'ipynb$' | \
195 sed -e "s|^$local_path| https://nbviewer.jupyter.org/url/$gs_path|" >> gerrit_comment.txt