Include dynamic project variable in build-docu scripts 44/444/5
authorVictor Laza <vlaza@cloudbasesolutions.com>
Thu, 30 Apr 2015 08:52:28 +0000 (11:52 +0300)
committerVictor Laza <vlaza@cloudbasesolutions.com>
Thu, 30 Apr 2015 09:05:02 +0000 (12:05 +0300)
JIRA: DOCS-24 - Include dynamic project variable in build-docu scripts
as oposite to hard-coded value how it's now set; shortened script
names for better visibility

Change-Id: Ib55d3c985f1cd27fd834d728659b9273b46773e4
Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
jjb/opnfvdocs/docu-build.sh [moved from jjb/opnfvdocs/build-upload-docu.sh with 94% similarity]
jjb/opnfvdocs/docu-verify.sh [moved from jjb/opnfvdocs/build-docu-verify.sh with 84% similarity]
jjb/opnfvdocs/opnfvdocs.yml

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)"
similarity index 84%
rename from jjb/opnfvdocs/build-docu-verify.sh
rename to jjb/opnfvdocs/docu-verify.sh
index a6a1596..f337a7f 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)"
index 37310a7..39e33eb 100644 (file)
@@ -51,7 +51,7 @@
 
     builders:
         - shell:
-            !include-raw build-upload-docu.sh
+            !include-raw docu-build.sh
 
 - job-template:
     name: 'opnfvdocs-verify'
 
     builders:
         - shell:
-            !include-raw build-docu-verify.sh
+            !include-raw docu-verify.sh
 
 - job-template:
     name: 'opnfvdocs-merge'
 
     builders:
         - shell:
-            !include-raw build-upload-docu.sh
+            !include-raw docu-build.sh