summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorVictor Laza <vlaza@cloudbasesolutions.com>2015-04-28 11:56:41 +0300
committerVictor Laza <vlaza@cloudbasesolutions.com>2015-04-28 11:56:41 +0300
commitfb331665c5b85f6ea3258fe4c9f3e287b25ed41b (patch)
tree9d5424d621eced348f53d186edafa995249541c3 /jjb
parent7582497a68eeee1149e38bc306b12655cd092128 (diff)
Adding images upload for pharos, octopus, genesis, functest
JIRA: Adding images upload for pharos, octopus, genesis, functest for documentation artifacts as .html ones did not had images shown because they were not part of the upload to artifactory part. Change-Id: Ia85b71f5f84c3d018db16778b8c85a88ce688dc2 Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/functest/build-upload-docu.sh19
-rw-r--r--jjb/genesis/build-docu.sh19
-rw-r--r--jjb/octopus/build-upload-docu.sh19
-rw-r--r--jjb/pharos/build-upload-docu.sh19
4 files changed, 76 insertions, 0 deletions
diff --git a/jjb/functest/build-upload-docu.sh b/jjb/functest/build-upload-docu.sh
index bd5abdbf2..f9da084b0 100644
--- a/jjb/functest/build-upload-docu.sh
+++ b/jjb/functest/build-upload-docu.sh
@@ -40,3 +40,22 @@ for file in "${{files[@]}}"; do
done
+images=()
+while read -r -d ''; do
+ images+=("$REPLY")
+done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
+
+for img in "${{images[@]}}"; do
+
+ # uploading found images
+ echo "uploading $img"
+ cat "$img" | gsutil cp -L gsoutput.txt - \
+ gs://artifacts.opnfv.org/"$project"/"$img"
+ 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
+ rm -f gsoutput.txt
+
+done
+
diff --git a/jjb/genesis/build-docu.sh b/jjb/genesis/build-docu.sh
index b3869fcf7..701768bcd 100644
--- a/jjb/genesis/build-docu.sh
+++ b/jjb/genesis/build-docu.sh
@@ -36,3 +36,22 @@ for file in "${{files[@]}}"; do
done
+images=()
+while read -r -d ''; do
+ images+=("$REPLY")
+done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
+
+for img in "${{images[@]}}"; do
+
+ # uploading found images
+ echo "uploading $img"
+ cat "$img" | gsutil cp -L gsoutput.txt - \
+ gs://artifacts.opnfv.org/"$project"/"$img"
+ 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
+ rm -f gsoutput.txt
+
+done
+
diff --git a/jjb/octopus/build-upload-docu.sh b/jjb/octopus/build-upload-docu.sh
index 81f875dcf..beb4cd149 100644
--- a/jjb/octopus/build-upload-docu.sh
+++ b/jjb/octopus/build-upload-docu.sh
@@ -40,3 +40,22 @@ for file in "${{files[@]}}"; do
done
+images=()
+while read -r -d ''; do
+ images+=("$REPLY")
+done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
+
+for img in "${{images[@]}}"; do
+
+ # uploading found images
+ echo "uploading $img"
+ cat "$img" | gsutil cp -L gsoutput.txt - \
+ gs://artifacts.opnfv.org/"$project"/"$img"
+ 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
+ rm -f gsoutput.txt
+
+done
+
diff --git a/jjb/pharos/build-upload-docu.sh b/jjb/pharos/build-upload-docu.sh
index caf102119..36e0400ae 100644
--- a/jjb/pharos/build-upload-docu.sh
+++ b/jjb/pharos/build-upload-docu.sh
@@ -40,3 +40,22 @@ for file in "${{files[@]}}"; do
done
+images=()
+while read -r -d ''; do
+ images+=("$REPLY")
+done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
+
+for img in "${{images[@]}}"; do
+
+ # uploading found images
+ echo "uploading $img"
+ cat "$img" | gsutil cp -L gsoutput.txt - \
+ gs://artifacts.opnfv.org/"$project"/"$img"
+ 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
+ rm -f gsoutput.txt
+
+done
+