diff --git a/modules/jenkins/files/slave_scripts/propose_requirements_update.sh b/modules/jenkins/files/slave_scripts/propose_requirements_update.sh index c48d289119..ca5852d553 100755 --- a/modules/jenkins/files/slave_scripts/propose_requirements_update.sh +++ b/modules/jenkins/files/slave_scripts/propose_requirements_update.sh @@ -15,7 +15,12 @@ INITIAL_COMMIT_MSG="Updated from global requirements" TOPIC="openstack/requirements" USERNAME=${USERNAME:-$USER} -BRANCH=${ZUUL_BRANCH:-master} +BRANCH=$ZUUL_REF + +if [ -z "$BRANCH" ] ; then + echo "No branch set, exiting." + exit 1 +fi git config user.name "OpenStack Jenkins" git config user.email "jenkins@openstack.org" diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index d52f3aac88..0875d59b6a 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -1548,6 +1548,7 @@ projects: - post-mirror-python26 - post-mirror-python27 - post-mirror-python33 + - propose-requirements-updates periodic: - periodic-mirror-python26 - periodic-mirror-python27