opnfvdocs: Store colorado.2.0 documents in different location 69/22269/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 21 Sep 2016 18:31:52 +0000 (20:31 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 21 Sep 2016 18:38:43 +0000 (20:38 +0200)
This patch is a workaround until more proper mechanism is put in place.

The doc-version parameter is appended to default GS_URL, changing the
storage location of the documents from
    http://artifacts.opnfv.org/sfc/colorado/docs/bradys-cool-document.html
to
    http://artifacts.opnfv.org/sfc/colorado/2.0/docs/bradys-cool-document.html

Documents generated from master branch will be stored in same location such as
    http://artifacts.opnfv.org/sfc/docs/bradys-cool-document.html

Change-Id: Ibdd03a0dac14e44160c14fa0130d339c00e0adce
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/opnfv/opnfv-docs.yml

index 7436573..0ac8aa7 100644 (file)
     stream:
         - master:
             branch: '{stream}'
+            doc-version: ''
             gs-pathname: ''
             disabled: false
         - colorado:
             branch: 'stable/{stream}'
-            gs-pathname: '/{stream}'
+            doc-version: '2.0'
+            gs-pathname: '/{stream}/{doc-version}'
             disabled: false
 
 ########################
@@ -82,7 +84,7 @@
         - string:
             name: GS_URL
             default: '$GS_BASE{gs-pathname}'
-            description: "Directory where the build artifact will be located upon the completion     of the build."
+            description: "Directory where the build artifact will be located upon the completion of the build."
 
     scm:
         - gerrit-trigger-scm: