Upload Generated Documentation to Correct Path 61/23461/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 20 Oct 2016 19:48:27 +0000 (12:48 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 20 Oct 2016 19:48:27 +0000 (12:48 -0700)
Documentation for Colorado 2.0 is not being uploaded to the correct
place. Instead of being uploaded to 'colorado/2.0/docs' documentation is
getting uploaded to 'colorado/2.0/'. Using `$gs_path` over `$GS_URL`
should fix this.

Further this should fix the failure from the gsutil command happening
when trying to set the correct Content-Type header on HTML files as it's
referencing a path that does not exist.

JIRA: DOCS-161

Change-Id: Ic732fda5cac54b1cc4834f2b44000ee87838f269
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/releng-macros.yaml

index d2dc1d1..2ebd775 100644 (file)
 
             mkdir -p upload
             mv docs_output "$local_path"
-            gsutil -m cp -r "$local_path" "gs://$GS_URL"
+            gsutil -m cp -r "$local_path" "gs://$gs_path"
 
             gsutil -m setmeta \
                 -h "Content-Type:text/html" \