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
68 # upload juypter notebook to artifacts for review
70 name: 'qtip-review-notebook-{stream}'
72 disabled: '{obj:disabled}'
78 - 'opnfv-build-ubuntu-defaults'
85 server-name: 'gerrit.opnfv.org'
87 - patchset-created-event:
88 exclude-drafts: 'false'
89 exclude-trivial-rebase: 'false'
90 exclude-no-code-change: 'false'
91 - draft-published-event
92 - comment-added-contains-event:
93 comment-contains-value: 'recheck'
94 - comment-added-contains-event:
95 comment-contains-value: 'reverify'
97 - project-compare-type: 'ANT'
98 project-pattern: '{project}'
100 - branch-compare-type: 'ANT'
101 branch-pattern: '**/{branch}'
102 disable-strict-forbidden-file-verification: 'true'
105 pattern: 'examples/**'
107 - upload-under-review-notebooks-to-opnfv-artifacts
108 - report-build-result-to-gerrit
111 name: 'qtip-merge-{stream}'
113 disabled: '{obj:disabled}'
117 project: $GERRIT_PROJECT
121 default: '$GS_BASE{gs-pathname}'
122 description: "Directory where the build artifact will be located upon the completion of the build."
125 default: 'refs/heads/{branch}'
126 description: "JJB configured GERRIT_REFSPEC parameter"
133 server-name: 'gerrit.opnfv.org'
135 - change-merged-event
136 - comment-added-contains-event:
137 comment-contains-value: 'remerge'
139 - project-compare-type: 'ANT'
142 - branch-compare-type: 'ANT'
143 branch-pattern: '**/{branch}'
149 - remove-old-docs-from-opnfv-artifacts
151 ################################
153 #################################
155 name: qtip-unit-tests-and-docs-build
165 # modified from upload-under-review-docs-to-opnfv-artifacts in global/releng-macro.yml
167 name: upload-under-review-notebooks-to-opnfv-artifacts
174 export PATH=$PATH:/usr/local/bin/
176 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
177 [[ -d examples ]] || exit 0
180 echo "###########################"
181 echo "UPLOADING DOCS UNDER REVIEW"
182 echo "###########################"
185 gs_base="artifacts.opnfv.org/$PROJECT/review"
186 gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
187 local_path="upload/$GERRIT_CHANGE_NUMBER"
190 cp -r examples "$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