9 - 'qtip-verify-{stream}'
10 - 'qtip-review-notebook-{stream}'
11 - 'qtip-merge-{stream}'
18 branch: 'stable/{stream}'
19 gs-pathname: '/{stream}'
22 ################################
24 #################################
26 name: 'qtip-verify-{stream}'
28 disabled: '{obj:disabled}'
34 - 'opnfv-build-ubuntu-defaults'
41 server-name: 'gerrit.opnfv.org'
43 - patchset-created-event:
44 exclude-drafts: 'false'
45 exclude-trivial-rebase: 'false'
46 exclude-no-code-change: 'false'
47 - draft-published-event
48 - comment-added-contains-event:
49 comment-contains-value: 'recheck'
50 - comment-added-contains-event:
51 comment-contains-value: 'reverify'
53 - project-compare-type: 'ANT'
54 project-pattern: '{project}'
56 - branch-compare-type: 'ANT'
57 branch-pattern: '**/{branch}'
58 disable-strict-forbidden-file-verification: 'true'
61 pattern: 'docs/**|.gitignore'
64 - qtip-unit-tests-and-docs-build
67 - email-jenkins-admins-on-failure
69 # upload juypter notebook to artifacts for review
71 name: 'qtip-review-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: 'examples/**'
108 - upload-under-review-notebooks-to-opnfv-artifacts
109 - report-build-result-to-gerrit
112 name: 'qtip-merge-{stream}'
114 disabled: '{obj:disabled}'
118 project: $GERRIT_PROJECT
122 default: '$GS_BASE{gs-pathname}'
123 description: "Directory where the build artifact will be located upon the completion of the build."
126 default: 'refs/heads/{branch}'
127 description: "JJB configured GERRIT_REFSPEC parameter"
134 server-name: 'gerrit.opnfv.org'
136 - change-merged-event
137 - comment-added-contains-event:
138 comment-contains-value: 'remerge'
140 - project-compare-type: 'ANT'
143 - branch-compare-type: 'ANT'
144 branch-pattern: '**/{branch}'
150 - remove-old-docs-from-opnfv-artifacts
152 ################################
154 #################################
156 name: qtip-unit-tests-and-docs-build
166 # modified from upload-under-review-docs-to-opnfv-artifacts in global/releng-macro.yml
168 name: upload-under-review-notebooks-to-opnfv-artifacts
175 export PATH=$PATH:/usr/local/bin/
177 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
178 [[ -d examples ]] || exit 0
181 echo "###########################"
182 echo "UPLOADING DOCS UNDER REVIEW"
183 echo "###########################"
186 gs_base="artifacts.opnfv.org/$PROJECT/review"
187 gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
188 local_path="upload/$GERRIT_CHANGE_NUMBER"
191 cp -r examples "$local_path"
192 gsutil -m cp -r "$local_path" "gs://$gs_base/"
194 echo "Document link(s):" >> gerrit_comment.txt
195 find "$local_path" | grep -e 'ipynb$' | \
196 sed -e "s|^$local_path| https://nbviewer.jupyter.org/url/$gs_path|" >> gerrit_comment.txt