Okay, this should fix the path problems
[releng.git] / jjb / copper / docu-build.sh
index cf3521f..68a7bf5 100644 (file)
@@ -33,6 +33,10 @@ 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/* "gs://$gs_path_branch/design_docs/"
     #gsutil cp -r build/design_docs "gs://$gs_path_branch/"
@@ -40,7 +44,7 @@ else
     #gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/"
     #echo
 
-    echo "Latest document is available at http://$gs_path_branch/index.html"
+    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