summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-06-07 14:55:09 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-06-19 16:42:18 -0700
commit29ae4665f197d7e991e9638a747e869797e9f989 (patch)
tree5bdd602c567660b9dff63f6a219d69a456d2b062 /jjb
parentc786cbc734a5248891355afb88b76af849aa9798 (diff)
Generalize Gerrit non-voting Review Macro Name
This patch updates the 'report-docs-build-result-to-gerrit' macro name to reflect that it can work well for more than just the opnfvdocs project. To take advantage of this macro a build merely needs to write out the file 'gerrit_comment.txt' with the information they want posted back to gerrit, and include the macro in the list of builders. Change-Id: Ifbdc5734fe7e7231be0cfd16d6b8d69cb1383bfd Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/global/releng-macros.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index ced335cb9..338b8aa06 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -259,8 +259,11 @@
find "$local_path" | grep -e 'index.html$' -e 'pdf$' | \
sed -e "s|^$local_path| http://$gs_path|" >> gerrit_comment.txt
+# To take advantage of this macro, have your build write
+# out the file 'gerrit_comment.txt' with information to post
+# back to gerrit and include this macro in the list of builders.
- builder:
- name: report-docs-build-result-to-gerrit
+ name: report-build-result-to-gerrit
builders:
- shell: |
#!/bin/bash
@@ -407,14 +410,14 @@
builders:
- build-html-and-pdf-docs-output
- upload-under-review-docs-to-opnfv-artifacts
- - report-docs-build-result-to-gerrit
+ - report-build-result-to-gerrit
- builder:
name: upload-merged-docs
builders:
- build-html-and-pdf-docs-output
- upload-generated-docs-to-opnfv-artifacts
- - report-docs-build-result-to-gerrit
+ - report-build-result-to-gerrit
- remove-old-docs-from-opnfv-artifacts
- builder: