LISPflowmapping: $GERRIT_BRANCH -> $DISTROBRANCH
[integration/test.git] / 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