Include dynamic project variable in build-docu scripts
[releng.git] / jjb / opnfvdocs / docu-build.sh
similarity index 94%
rename from jjb/opnfvdocs/build-upload-docu.sh
rename to jjb/opnfvdocs/docu-build.sh
index 7b4321a..499bdbe 100644 (file)
@@ -2,7 +2,7 @@
 set -e
 set -o pipefail
 
-project="opnfvdocs"
+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)"