summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Prakash Vaja <wolverine.av@gmail.com>2018-10-16 01:35:57 +0530
committerAditya Prakash Vaja <wolverine.av@gmail.com>2018-10-16 01:35:57 +0530
commit71dc1b0b6d635094b39df7f8bbf1f01542ec0855 (patch)
tree899c5dceed3be96253bc79566b508bcd10e14849
parentd407de69180e5c245a67d68f4f600d11a7056b6f (diff)
OSP-248: handle branches for BOSI
- with backward incompatible changes in BOSI from Queens onwards, build should pick the correct BOSI branch Change-Id: Ief67e8fe320fd8096eea216ba6045d8c8e2a8bb0
Notes
Notes (review): Code-Review+2: Aditya Vaja <wolverine.av@gmail.com> Workflow+1: Aditya Vaja <wolverine.av@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 16 Oct 2018 19:47:50 +0000 Reviewed-on: https://review.openstack.org/610718 Project: openstack/networking-bigswitch Branch: refs/heads/master
-rw-r--r--build_packages/openstack_networking_bigswitch_tagged.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_packages/openstack_networking_bigswitch_tagged.build b/build_packages/openstack_networking_bigswitch_tagged.build
index b6cb751..7382e27 100644
--- a/build_packages/openstack_networking_bigswitch_tagged.build
+++ b/build_packages/openstack_networking_bigswitch_tagged.build
@@ -44,30 +44,35 @@ case "$GIT_BRANCH" in
44 PAGE_ID="866942996" 44 PAGE_ID="866942996"
45 OSP_REL_NAME="ROCKY" 45 OSP_REL_NAME="ROCKY"
46 RHOSP_REL_NAME="RHOSP-14" 46 RHOSP_REL_NAME="RHOSP-14"
47 BOSI_BRANCH="4.7.0"
47 ;; 48 ;;
48 *"queen"*) 49 *"queen"*)
49 GIT_TAG_REGEX="12.*.*" 50 GIT_TAG_REGEX="12.*.*"
50 PAGE_ID="861044932" 51 PAGE_ID="861044932"
51 OSP_REL_NAME="QUEENS" 52 OSP_REL_NAME="QUEENS"
52 RHOSP_REL_NAME="RHOSP-13" 53 RHOSP_REL_NAME="RHOSP-13"
54 BOSI_BRANCH="4.7.0"
53 ;; 55 ;;
54 *"pike"*) 56 *"pike"*)
55 GIT_TAG_REGEX="11.*.*" 57 GIT_TAG_REGEX="11.*.*"
56 PAGE_ID="861044928" 58 PAGE_ID="861044928"
57 OSP_REL_NAME="PIKE" 59 OSP_REL_NAME="PIKE"
58 RHOSP_REL_NAME="RHOSP-12" 60 RHOSP_REL_NAME="RHOSP-12"
61 BOSI_BRANCH="4.0.0"
59 ;; 62 ;;
60 *"ocata"*) 63 *"ocata"*)
61 GIT_TAG_REGEX="10.*.*" 64 GIT_TAG_REGEX="10.*.*"
62 PAGE_ID="846594211" 65 PAGE_ID="846594211"
63 OSP_REL_NAME="OCATA" 66 OSP_REL_NAME="OCATA"
64 RHOSP_REL_NAME="RHOSP-11" 67 RHOSP_REL_NAME="RHOSP-11"
68 BOSI_BRANCH="4.0.0"
65 ;; 69 ;;
66 *"newton"*) 70 *"newton"*)
67 GIT_TAG_REGEX="9.*.*" 71 GIT_TAG_REGEX="9.*.*"
68 PAGE_ID="845905936" 72 PAGE_ID="845905936"
69 OSP_REL_NAME="NEWTON" 73 OSP_REL_NAME="NEWTON"
70 RHOSP_REL_NAME="RHOSP-10" 74 RHOSP_REL_NAME="RHOSP-10"
75 BOSI_BRANCH="4.0.0"
71 ;; 76 ;;
72 *) 77 *)
73 echo "UNKNOWN BRANCH ENCOUNTERED. SKIPPING." 78 echo "UNKNOWN BRANCH ENCOUNTERED. SKIPPING."
@@ -131,7 +136,7 @@ ALL_RPM_YAML_TAR_DIR="$RHOSP_REL_NAME-$OSP_REL_NAME-PLUGINS-$DATE"
131ALL_RPM_YAML_TAR_GZ="$ALL_RPM_YAML_TAR_DIR.tar.gz" 136ALL_RPM_YAML_TAR_GZ="$ALL_RPM_YAML_TAR_DIR.tar.gz"
132# 1. get yamls and customize scripts from BOSI 137# 1. get yamls and customize scripts from BOSI
133mkdir bosi 138mkdir bosi
134rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/bosi/4.0.0/latest/* ./bosi 139rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva bigtop:public_html/bosi/$BOSI_BRANCH/latest/* ./bosi
135mv ./bosi/rhosp_resources/$GIT_BRANCH/yamls ./$ALL_RPM_YAML_TAR_DIR 140mv ./bosi/rhosp_resources/$GIT_BRANCH/yamls ./$ALL_RPM_YAML_TAR_DIR
136mv ./bosi/rhosp_resources/$GIT_BRANCH/ivs/* ./$ALL_RPM_YAML_TAR_DIR 141mv ./bosi/rhosp_resources/$GIT_BRANCH/ivs/* ./$ALL_RPM_YAML_TAR_DIR
137 142