From: Victor Laza Date: Tue, 28 Apr 2015 08:19:43 +0000 (+0300) Subject: Content-Type:image/jpeg in build-upload-docu.sh for images X-Git-Tag: arno.2015.1.0~83 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=commitdiff_plain;h=7582497a68eeee1149e38bc306b12655cd092128 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 --- 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