#!/bin/bash # Make sure changes merged after patch creation are applied. set -exu echo "Rebase the patch on top of ${GERRIT_PROJECT}" 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/${DISTROBRANCH}" cd "${WORKSPACE}"