summaryrefslogtreecommitdiffstats
path: root/jjb/octopus
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/octopus')
-rw-r--r--jjb/octopus/docu-build.sh (renamed from jjb/octopus/build-upload-docu.sh)7
-rw-r--r--jjb/octopus/docu-verify.sh (renamed from jjb/octopus/build-docu-verify.sh)2
-rw-r--r--jjb/octopus/octopus.yml6
3 files changed, 7 insertions, 8 deletions
diff --git a/jjb/octopus/build-upload-docu.sh b/jjb/octopus/docu-build.sh
index fdd1463d7..499bdbe4b 100644
--- a/jjb/octopus/build-upload-docu.sh
+++ b/jjb/octopus/docu-build.sh
@@ -2,7 +2,7 @@
set -e
set -o pipefail
-project="octopus"
+project="$(git remote -v | head -n1 | awk '{{print $2}}' | sed -e 's,.*:\(.*/\)\?,,' -e 's/\.git$//')"
export PATH=$PATH:/usr/local/bin/
git_sha1="$(git rev-parse HEAD)"
@@ -50,8 +50,8 @@ done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
for img in "${{images[@]}}"; do
- # uploading found images
- echo "uploading $img"
+ # 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" \
@@ -61,4 +61,3 @@ for img in "${{images[@]}}"; do
rm -f gsoutput.txt
done
-
diff --git a/jjb/octopus/build-docu-verify.sh b/jjb/octopus/docu-verify.sh
index 9c288fa12..f337a7fae 100644
--- a/jjb/octopus/build-docu-verify.sh
+++ b/jjb/octopus/docu-verify.sh
@@ -2,7 +2,7 @@
set -e
set -o pipefail
-project="octopus"
+project="$(git remote -v | head -n1 | awk '{{print $2}}' | sed -e 's,.*:\(.*/\)\?,,' -e 's/\.git$//')"
export PATH=$PATH:/usr/local/bin/
git_sha1="$(git rev-parse HEAD)"
diff --git a/jjb/octopus/octopus.yml b/jjb/octopus/octopus.yml
index c72292c8f..459ba7a01 100644
--- a/jjb/octopus/octopus.yml
+++ b/jjb/octopus/octopus.yml
@@ -74,7 +74,7 @@
builders:
- shell:
- !include-raw build-upload-docu.sh
+ !include-raw docu-build.sh
postbuilders:
- test-macro
@@ -128,7 +128,7 @@
builders:
- shell:
- !include-raw build-docu-verify.sh
+ !include-raw docu-verify.sh
- job-template:
name: 'octopus-merge'
@@ -176,5 +176,5 @@
builders:
- shell:
- !include-raw build-upload-docu.sh
+ !include-raw docu-build.sh