summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorVictor Laza <vlaza@cloudbasesolutions.com>2015-04-28 15:31:35 +0300
committerVictor Laza <vlaza@cloudbasesolutions.com>2015-04-28 15:31:35 +0300
commit0cca29982d65e828244aa9e18c0f8f8b0bc66378 (patch)
tree0b90a14983d5899df181f7fe95eb41c5b7860396 /docs
parent1c1056b9af2bc5d7822d061a57f4539db2baea2c (diff)
JIRA: #2 update docs/enable_docu_gen.rst with latest image include code
Change-Id: Ie77e13aa5358f13011852739e792ab23ce5026c4 Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/enable_docu_gen.rst40
1 files changed, 19 insertions, 21 deletions
diff --git a/docs/enable_docu_gen.rst b/docs/enable_docu_gen.rst
index 8dd1c02fc..d75f592b8 100644
--- a/docs/enable_docu_gen.rst
+++ b/docs/enable_docu_gen.rst
@@ -94,6 +94,25 @@ example: cp releng/jjb/opnfvdocs/build-docu.sh releng/jjb/<your-project>/::
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
+
#the double {{ in file_cut="${{file%.*}}" is to escape jjb's yaml
@@ -129,27 +148,6 @@ example: cp releng/jjb/opnfvdocs/build-docu.sh releng/jjb/<your-project>/::
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
-
-
-
#the double {{ in file_cut="${{file%.*}}" is to escape jjb's yaml