xci: Set content-type of promotion properties file to text/html 05/54505/1
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 26 Mar 2018 23:17:18 +0000 (16:17 -0700)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 26 Mar 2018 23:17:47 +0000 (16:17 -0700)
Change-Id: I609b796c629c68df214634ced5e9e6bda8ac2607
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/xci/xci-promote.sh

index 4e72dc8..d8d61be 100755 (executable)
@@ -39,7 +39,8 @@ echo "Storing promotion metadata as $REMOTE_PROMOTION_METADATA_FILE"
 gsutil cp $LOCAL_PROMOTION_METADATA_FILE $REMOTE_PROMOTION_METADATA_FILE > /dev/null 2>&1
 
 # update the file metadata on gs to prevent the use of cached version of the file
-gsutil -m setmeta -r -h "Cache-Control:private, max-age=0, no-transform" \
+gsutil -m setmeta -r -h "Content-Type:text/html" \
+    -h "Cache-Control:private, max-age=0, no-transform" \
     $REMOTE_PROMOTION_METADATA_FILE > /dev/null 2>&1
 
 # log the metadata to console