Browse Source

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
tags/14.0.0
Aditya Prakash Vaja 8 months ago
parent
commit
71dc1b0b6d
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      build_packages/openstack_networking_bigswitch_tagged.build

+ 6
- 1
build_packages/openstack_networking_bigswitch_tagged.build View File

@@ -44,30 +44,35 @@ case "$GIT_BRANCH" in
44 44
     PAGE_ID="866942996"
45 45
     OSP_REL_NAME="ROCKY"
46 46
     RHOSP_REL_NAME="RHOSP-14"
47
+    BOSI_BRANCH="4.7.0"
47 48
     ;;
48 49
   *"queen"*)
49 50
     GIT_TAG_REGEX="12.*.*"
50 51
     PAGE_ID="861044932"
51 52
     OSP_REL_NAME="QUEENS"
52 53
     RHOSP_REL_NAME="RHOSP-13"
54
+    BOSI_BRANCH="4.7.0"
53 55
     ;;
54 56
   *"pike"*)
55 57
     GIT_TAG_REGEX="11.*.*"
56 58
     PAGE_ID="861044928"
57 59
     OSP_REL_NAME="PIKE"
58 60
     RHOSP_REL_NAME="RHOSP-12"
61
+    BOSI_BRANCH="4.0.0"
59 62
     ;;
60 63
   *"ocata"*)
61 64
     GIT_TAG_REGEX="10.*.*"
62 65
     PAGE_ID="846594211"
63 66
     OSP_REL_NAME="OCATA"
64 67
     RHOSP_REL_NAME="RHOSP-11"
68
+    BOSI_BRANCH="4.0.0"
65 69
     ;;
66 70
   *"newton"*)
67 71
     GIT_TAG_REGEX="9.*.*"
68 72
     PAGE_ID="845905936"
69 73
     OSP_REL_NAME="NEWTON"
70 74
     RHOSP_REL_NAME="RHOSP-10"
75
+    BOSI_BRANCH="4.0.0"
71 76
     ;;
72 77
   *)
73 78
     echo "UNKNOWN BRANCH ENCOUNTERED. SKIPPING."
@@ -131,7 +136,7 @@ ALL_RPM_YAML_TAR_DIR="$RHOSP_REL_NAME-$OSP_REL_NAME-PLUGINS-$DATE"
131 136
 ALL_RPM_YAML_TAR_GZ="$ALL_RPM_YAML_TAR_DIR.tar.gz"
132 137
 # 1. get yamls and customize scripts from BOSI
133 138
 mkdir bosi
134
-rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva  bigtop:public_html/bosi/4.0.0/latest/* ./bosi
139
+rsync -e 'ssh -o "StrictHostKeyChecking no"' -uva  bigtop:public_html/bosi/$BOSI_BRANCH/latest/* ./bosi
135 140
 mv ./bosi/rhosp_resources/$GIT_BRANCH/yamls ./$ALL_RPM_YAML_TAR_DIR
136 141
 mv ./bosi/rhosp_resources/$GIT_BRANCH/ivs/* ./$ALL_RPM_YAML_TAR_DIR
137 142
 

Loading…
Cancel
Save