summaryrefslogtreecommitdiffstats
path: root/jjb/genesis
diff options
context:
space:
mode:
authorVictor Laza <vlaza@cloudbasesolutions.com>2015-05-04 10:14:18 +0300
committerVictor Laza <vlaza@cloudbasesolutions.com>2015-05-04 10:17:34 +0300
commit8b12756b2e200a830898b6e73e49969f4adca658 (patch)
tree9c22b4c8da509abe063ec962b11a95d5941b36bf /jjb/genesis
parent1e2ad344685a6f07ecc29329ecee2e2aca4fd9c1 (diff)
Extend dynamic project variable in docu-build scripts
JIRA: DOCS-26 - Extend dynamic project variable in docu-build scripts for functest, octopus, genesis & pharos Change-Id: I2bb699e7060754527fae4d7abe5b8fbf46c0a7dd Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'jjb/genesis')
-rw-r--r--jjb/genesis/docu-build.sh (renamed from jjb/genesis/build-upload-docu.sh)2
-rw-r--r--jjb/genesis/docu-verify.sh (renamed from jjb/genesis/build-docu-verify.sh)2
-rw-r--r--jjb/genesis/genesis-docs.yml4
3 files changed, 4 insertions, 4 deletions
diff --git a/jjb/genesis/build-upload-docu.sh b/jjb/genesis/docu-build.sh
index 2a6bbf725..bf69c0c75 100644
--- a/jjb/genesis/build-upload-docu.sh
+++ b/jjb/genesis/docu-build.sh
@@ -2,7 +2,7 @@
set -e
set -o pipefail
-project="genesis"
+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/genesis/build-docu-verify.sh b/jjb/genesis/docu-verify.sh
index 06b374e16..1f0c39564 100644
--- a/jjb/genesis/build-docu-verify.sh
+++ b/jjb/genesis/docu-verify.sh
@@ -2,7 +2,7 @@
set -e
set -o pipefail
-project="genesis"
+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/genesis/genesis-docs.yml b/jjb/genesis/genesis-docs.yml
index 21c16f7ad..0b6379831 100644
--- a/jjb/genesis/genesis-docs.yml
+++ b/jjb/genesis/genesis-docs.yml
@@ -62,7 +62,7 @@
builders:
- shell:
- !include-raw build-upload-docu.sh
+ !include-raw docu-build.sh
- job-template:
name: 'genesis-verify-docs'
@@ -115,5 +115,5 @@
builders:
- shell:
- !include-raw build-docu-verify.sh
+ !include-raw docu-verify.sh