5 export PATH=$PATH:/usr/local/bin/
13 sphinx-build -b html -E -c etc/ design_docs/ build/
20 # NOTE: make sure source parameters for GS paths are not empty.
21 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
22 [[ $GERRIT_PROJECT =~ .+ ]]
23 [[ $GERRIT_BRANCH =~ .+ ]]
25 gs_path_review="artifacts.opnfv.org/review/$GERRIT_CHANGE_NUMBER"
26 if [[ $GERRIT_BRANCH = "master" ]] ; then
27 gs_path_branch="artifacts.opnfv.org/$GERRIT_PROJECT"
29 gs_path_branch="artifacts.opnfv.org/$GERRIT_PROJECT/${{GERRIT_BRANCH##*/}}"
32 if [[ $JOB_NAME =~ "verify" ]] ; then
33 gsutil cp -r build/* "gs://$gs_path_review/"
35 echo "Document is available at http://$gs_path_review/index.html"
37 gsutil cp -r build/* "gs://$gs_path_branch/design_docs/"
38 #gsutil cp -r build/design_docs "gs://$gs_path_branch/"
39 #gsutil cp -r build/requirements/html "gs://$gs_path_branch/"
40 #gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/"
43 echo "Latest document is available at http://$gs_path_branch/design_docs/index.html"
45 if gsutil ls "gs://$gs_path_review" > /dev/null 2>&1 ; then
47 echo "Deleting Out-of-dated Documents..."
48 gsutil rm -r "gs://$gs_path_review"