Merge "Use a single change ID per requirement proposal."

This commit is contained in:
Jenkins 2013-10-11 03:05:58 +00:00 committed by Gerrit Code Review
commit 21ae595ceb

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
COMMIT_MSG="Updated from global requirements" INITIAL_COMMIT_MSG="Updated from global requirements"
TOPIC="openstack/requirements" TOPIC="openstack/requirements"
USERNAME=${USERNAME:-$USER} USERNAME=${USERNAME:-$USER}
BRANCH=${ZUUL_BRANCH:-master} BRANCH=${ZUUL_BRANCH:-master}
@ -33,13 +33,18 @@ for PROJECT in $(cat projects.txt); do
# read return a non zero value when it reaches EOF. Because we use a # read return a non zero value when it reaches EOF. Because we use a
# heredoc here it will always reach EOF and return a nonzero value. # heredoc here it will always reach EOF and return a nonzero value.
# Disable -e temporarily to get around the read. # Disable -e temporarily to get around the read.
# The reason we use read is to allow for multiline variable content
# and variable interpolation. Simply double quoting a string across
# multiple lines removes the newlines.
set +e set +e
read -d '' COMMIT_MSG <<EOF read -d '' COMMIT_MSG <<EOF
$COMMIT_MSG $INITIAL_COMMIT_MSG
Change-Id: $change_id Change-Id: $change_id
EOF EOF
set -e set -e
else
COMMIT_MSG=$INITIAL_COMMIT_MSG
fi fi
rm -rf $(basename $PROJECT) rm -rf $(basename $PROJECT)