summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorVictor Laza <vlaza@cloudbasesolutions.com>2015-04-27 18:16:17 +0300
committerVictor Laza <vlaza@cloudbasesolutions.com>2015-04-27 18:16:17 +0300
commit2b022e745d5747bbbe93e18fe5e5290dd9a958ac (patch)
tree75da11f31598a83e02cfa979e86084f78e52a04b /jjb
parentb193241afed53c2f321483441f5b301361589bf8 (diff)
Adding upload images part for documentation build - opnfvdocs
JIRA: Adding upload images part for documentation build - opnfvdocs Change-Id: I206ef5245f6a55cceea3883d8c5a129f0530a90b Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/opnfvdocs/build-upload-docu.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/jjb/opnfvdocs/build-upload-docu.sh b/jjb/opnfvdocs/build-upload-docu.sh
index b7437265d..23e7838be 100644
--- a/jjb/opnfvdocs/build-upload-docu.sh
+++ b/jjb/opnfvdocs/build-upload-docu.sh
@@ -40,3 +40,22 @@ for file in "${{files[@]}}"; do
done
+
+images=()
+
+while read -r -d ''; do
+ files+=("$REPLY")
+done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
+
+for img in "${{images[@]}}"; do
+
+ # uploading found images
+ echo "uploading $img"
+ gs://artifacts.opnfv.org/"$project"/"$img"
+ gsutil setmeta -h "Content-Type:text/html" \
+ -h "Cache-Control:private, max-age=0, no-transform" \
+ gs://artifacts.opnfv.org/"$project"/"$img"
+ cat gsoutput.txt
+ rm -f gsoutput.txt
+
+done