From 7582497a68eeee1149e38bc306b12655cd092128 Mon Sep 17 00:00:00 2001 From: Victor Laza Date: Tue, 28 Apr 2015 11:19:43 +0300 Subject: Content-Type:image/jpeg in build-upload-docu.sh for images JIRA: stdin with cat "$img" for image upload in build-upload-docu.sh and Content-Type:image/jpeg for images Change-Id: I81a8d97d6ad784890eabe4d4ebb549cfb3bec541 Signed-off-by: Victor Laza --- jjb/opnfvdocs/build-upload-docu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jjb/opnfvdocs/build-upload-docu.sh b/jjb/opnfvdocs/build-upload-docu.sh index c4c78111a..561ccb177 100644 --- a/jjb/opnfvdocs/build-upload-docu.sh +++ b/jjb/opnfvdocs/build-upload-docu.sh @@ -49,9 +49,9 @@ for img in "${{images[@]}}"; do # uploading found images echo "uploading $img" - echo "$img" | gsutil cp -L gsoutput.txt - \ + cat "$img" | gsutil cp -L gsoutput.txt - \ gs://artifacts.opnfv.org/"$project"/"$img" - gsutil setmeta -h "Content-Type:text/html" \ + gsutil setmeta -h "Content-Type:image/jpeg" \ -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/"$project"/"$img" cat gsoutput.txt -- cgit 1.2.3-korg