summaryrefslogtreecommitdiffstats
path: root/jjb/pharos
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/pharos')
-rw-r--r--jjb/pharos/build-docu-verify.sh3
-rw-r--r--jjb/pharos/build-upload-docu.sh22
-rw-r--r--jjb/pharos/pharos.yml6
3 files changed, 31 insertions, 0 deletions
diff --git a/jjb/pharos/build-docu-verify.sh b/jjb/pharos/build-docu-verify.sh
index 46862d913..50d387079 100644
--- a/jjb/pharos/build-docu-verify.sh
+++ b/jjb/pharos/build-docu-verify.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+set -e
+set -o pipefail
+
project="pharos"
export PATH=$PATH:/usr/local/bin/
diff --git a/jjb/pharos/build-upload-docu.sh b/jjb/pharos/build-upload-docu.sh
index caf102119..50191e517 100644
--- a/jjb/pharos/build-upload-docu.sh
+++ b/jjb/pharos/build-upload-docu.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+set -e
+set -o pipefail
+
project="pharos"
export PATH=$PATH:/usr/local/bin/
@@ -40,3 +43,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/pharos.yml b/jjb/pharos/pharos.yml
index 85f03b799..8b5a01251 100644
--- a/jjb/pharos/pharos.yml
+++ b/jjb/pharos/pharos.yml
@@ -33,6 +33,8 @@
- job-template:
name: 'pharos-daily-{stream}'
+ node: master
+
# Job template for daily builders
#
# Required Variables:
@@ -78,6 +80,8 @@
- job-template:
name: 'pharos-verify'
+ node: master
+
project-type: freestyle
logrotate:
@@ -127,6 +131,8 @@
- job-template:
name: 'pharos-merge'
+ node: master
+
# builder-merge job to run JJB update
#
# This job's purpose is to update all the JJB