Update opnfv-docs Merge Job Trigger and Parameter 79/23379/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 19 Oct 2016 18:07:15 +0000 (11:07 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 19 Oct 2016 18:09:44 +0000 (11:09 -0700)
- Adds 'GERRIT_REFSPEC' parameter
   By setting a default to 'refs/heads/{branch}' (which will evaluate to
   either 'refs/heads/master', or 'refs/heads/stable/colorado') we will
   be able to manually trigger patchsets.

- Adds 'rebuild docs' comment to trigger
   Because 'remerge' is used by multiple projects, adding 'rebuild docs'
   will allow anyone to trigger only a rebuilding of the documentation,
   while still rebuilding them on a 'remerge' comment.

Change-Id: I596f3e8bf412077e5e505555cb0654394a32d213
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/opnfv/opnfv-docs.yml

index 0ac8aa7..307c1db 100644 (file)
             name: GS_URL
             default: '$GS_BASE{gs-pathname}'
             description: "Directory where the build artifact will be located upon the completion of the build."
+        - string:
+            name: GERRIT_REFSPEC
+            default: 'refs/heads/{branch}'
+            description: "JJB configured GERRIT_REFSPEC parameter"
 
     scm:
         - gerrit-trigger-scm:
                 - change-merged-event
                 - comment-added-contains-event:
                     comment-contains-value: 'remerge'
+                - comment-added-contains-event:
+                    comment-contains-value: 'rebuild docs'
             projects:
                 - project-compare-type: 'ANT'
                   project-pattern: '*'