Post links of documents generated for review to Gerrit 73/1273/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 21 Aug 2015 23:07:26 +0000 (01:07 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 26 Aug 2015 13:21:42 +0000 (13:21 +0000)
JIRA: RELENG-18

Change-Id: Ib0f3b4dcb31844b3dc96357ca1e4f000a633e493
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/copper/.availability.yml.swp [deleted file]
jjb/copper/docu-build.sh

diff --git a/jjb/copper/.availability.yml.swp b/jjb/copper/.availability.yml.swp
deleted file mode 100644 (file)
index 7ca6520..0000000
Binary files a/jjb/copper/.availability.yml.swp and /dev/null differ
index 8508ba8..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/"