LISPflowmapping: $GERRIT_BRANCH -> $DISTROBRANCH 24/54124/4
authorLorand Jakab <lojakab@cisco.com>
Tue, 5 Sep 2017 12:37:21 +0000 (15:37 +0300)
committerJamo Luhrsen <jluhrsen@redhat.com>
Fri, 8 Sep 2017 19:11:44 +0000 (19:11 +0000)
See https://git.opendaylight.org/gerrit/#/c/53804/1/csit/suites/lispflowmapping/scripts/generate_bindings.sh

Change-Id: I672289c74041410bf1dc45560db2140da3880772
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
csit/suites/lispflowmapping/scripts/generate_bindings.sh

index b5c3e1994a1bde4fba53cf3b7bc7677e3b431bb8..db6c564c8f187b24e6b440704ba85596e8e734fa 100755 (executable)
@@ -8,9 +8,9 @@ DIRECTORY="odl-lispflowmapping-yang-files"
 # contain all the binding files generated by pyangbind.
 mkdir -p ${WORKSPACE}/$DIRECTORY
 
-GITWEB_LISP="https://git.opendaylight.org/gerrit/gitweb?p=lispflowmapping.git;a=blob_plain;hb=refs/heads/${GERRIT_BRANCH}"
-GITWEB_MDSAL="https://git.opendaylight.org/gerrit/gitweb?p=mdsal.git;a=blob_plain;hb=refs/heads/${GERRIT_BRANCH}"
-GITWEB_CONTROLLER="https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blob_plain;hb=refs/heads/${GERRIT_BRANCH}"
+GITWEB_LISP="https://git.opendaylight.org/gerrit/gitweb?p=lispflowmapping.git;a=blob_plain;hb=refs/heads/${DISTROBRANCH}"
+GITWEB_MDSAL="https://git.opendaylight.org/gerrit/gitweb?p=mdsal.git;a=blob_plain;hb=refs/heads/${DISTROBRANCH}"
+GITWEB_CONTROLLER="https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blob_plain;hb=refs/heads/${DISTROBRANCH}"
 
 # Download yang-files in the VM on fly using curl before generating
 # binding files.
@@ -20,7 +20,7 @@ curl "$GITWEB_LISP;f=mappingservice/api/src/main/yang/odl-mappingservice.yang" -
 curl "$GITWEB_LISP;f=mappingservice/lisp-proto/src/main/yang/odl-lisp-address-types.yang" -o ${WORKSPACE}/$DIRECTORY/odl-lisp-address-types.yang
 
 # ietf-lisp-address-types.yang moved to MD-SAL project in Nitrogen
-if [ ${GERRIT_BRANCH} = "stable/boron" ] || [ ${GERRIT_BRANCH} = "stable/carbon" ]
+if [ ${DISTROBRANCH} = "stable/boron" ] || [ ${DISTROBRANCH} = "stable/carbon" ]
 then
     curl "$GITWEB_LISP;f=mappingservice/lisp-proto/src/main/yang/ietf-lisp-address-types.yang" -o ${WORKSPACE}/$DIRECTORY/ietf-lisp-address-types.yang
 else