9 - 'qtip-verify-{stream}'
10 - 'qtip-merge-{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
64 - upload-under-review-notebooks-to-opnfv-artifacts
69 name: 'qtip-merge-{stream}'
71 disabled: '{obj:disabled}'
75 project: $GERRIT_PROJECT
79 default: '$GS_BASE{gs-pathname}'
80 description: "Directory where the build artifact will be located upon the completion of the build."
83 default: 'refs/heads/{branch}'
84 description: "JJB configured GERRIT_REFSPEC parameter"
91 server-name: 'gerrit.opnfv.org'
94 - comment-added-contains-event:
95 comment-contains-value: 'remerge'
97 - project-compare-type: 'ANT'
100 - branch-compare-type: 'ANT'
101 branch-pattern: '**/{branch}'
107 - remove-old-docs-from-opnfv-artifacts
109 ################################
111 #################################
113 name: qtip-unit-tests-and-docs-build
123 # modified from upload-under-review-docs-to-opnfv-artifacts in global/releng-macro.yml
125 name: upload-under-review-notebooks-to-opnfv-artifacts
132 export PATH=$PATH:/usr/local/bin/
134 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
135 [[ -d examples ]] || exit 0
138 echo "###########################"
139 echo "UPLOADING DOCS UNDER REVIEW"
140 echo "###########################"
143 gs_base="artifacts.opnfv.org/$PROJECT/review"
144 gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
145 local_path="upload/$GERRIT_CHANGE_NUMBER"
148 cp -r examples "$local_path"
149 gsutil -m cp -r "$local_path" "gs://$gs_base"
151 echo "Document link(s):" >> gerrit_comment.txt
152 find "$local_path" | grep -e 'ipynb$' | \
153 sed -e "s|^$local_path| https://nbviewer.jupyter.org/urls/$gs_path|" >> gerrit_comment.txt