X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fgenesis%2Fbuild-docu.sh;h=701768bcda2591a6dd08dfa6de688322a276fc29;hb=fb331665c5b85f6ea3258fe4c9f3e287b25ed41b;hp=b3869fcf7a88214143c1f40396b5e970840ae641;hpb=7582497a68eeee1149e38bc306b12655cd092128;p=releng.git 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 +