X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fcopper%2Fdocu-build.sh;h=68a7bf54179f28b76815d6d20f771d67949e7115;hb=9c2aca362144860c01311a1e19d475bdf183dd7b;hp=626814d82ef58a93878f420375ed9cca2a779769;hpb=accfa671c93fab42427ac2c5d65165a796fcab3b;p=releng.git diff --git a/jjb/copper/docu-build.sh b/jjb/copper/docu-build.sh index 626814d82..68a7bf541 100644 --- a/jjb/copper/docu-build.sh +++ b/jjb/copper/docu-build.sh @@ -33,12 +33,18 @@ if [[ $JOB_NAME =~ "verify" ]] ; then gsutil cp -r build/* "gs://$gs_path_review/" echo echo "Document is available at http://$gs_path_review/index.html" + # post link to gerrit as comment + gerrit_comment=$(echo '"Document is available at 'http://$gs_path_review/index.html' for review"') + ssh -p 29418 gerrit.opnfv.org gerrit review -p $GERRIT_PROJECT -m \ + $gerrit_comment $GERRIT_PATCHSET_REVISION else - gsutil cp -r build/design_docs "gs://$gs_path_branch/" - gsutil cp -r build/requirements/html "gs://$gs_path_branch/" - gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/" - echo - echo "Latest document is available at http://$gs_path_branch/index.html" + gsutil cp -r build/* "gs://$gs_path_branch/design_docs/" + #gsutil cp -r build/design_docs "gs://$gs_path_branch/" + #gsutil cp -r build/requirements/html "gs://$gs_path_branch/" + #gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/" + #echo + + echo "Latest document is available at http://$gs_path_branch/design_docs/index.html" if gsutil ls "gs://$gs_path_review" > /dev/null 2>&1 ; then echo