Check if distribution came from jenkins
[releng/builder.git] / jjb / integration / include-raw-integration-rebase-gerrit-patch.sh
index 96dca8ae8a63b7f6f34a0ac59945694ad6b265ea..b1fbae329b511a647a37389de6597bf4e1541fcb 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/bash
 # Make sure changes merged after patch creation are applied.
 
 set -exu
@@ -6,5 +7,5 @@ cd "${GERRIT_PROJECT}"
 export EMAIL="sandbox@jenkins.opendaylight.org"
 # TODO: Is there a more appropriate e-mail?
 export GIT_COMMITTER_NAME="Rebase Macro"
-git rebase "origin/${BRANCH}"
+git rebase "origin/${DISTROBRANCH}"
 cd "${WORKSPACE}"