Merge "Use proposal bot username in proposal jobs."

This commit is contained in:
Jenkins 2014-04-15 18:26:53 +00:00 committed by Gerrit Code Review
commit 04c3a045fc
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
INITIAL_COMMIT_MSG="Updated from global requirements" INITIAL_COMMIT_MSG="Updated from global requirements"
TOPIC="openstack/requirements" TOPIC="openstack/requirements"
USERNAME=${USERNAME:-$USER} USERNAME="proposal-bot"
BRANCH=$ZUUL_REF BRANCH=$ZUUL_REF
ALL_SUCCESS=0 ALL_SUCCESS=0
@ -33,7 +33,7 @@ for PROJECT in $(cat projects.txt); do
# See if there is an open change in the openstack/requirements topic # See if there is an open change in the openstack/requirements topic
# If so, get the change id for the existing change for use in the # If so, get the change id for the existing change for use in the
# commit msg. # commit msg.
change_info=$(ssh -p 29418 review.openstack.org gerrit query --current-patch-set status:open project:$PROJECT topic:$TOPIC owner:$USERNAME branch:$BRANCH) change_info=$(ssh -p 29418 $USERNAME@review.openstack.org gerrit query --current-patch-set status:open project:$PROJECT topic:$TOPIC owner:$USERNAME branch:$BRANCH)
previous=$(echo "$change_info" | grep "^ number:" | awk '{print $2}') previous=$(echo "$change_info" | grep "^ number:" | awk '{print $2}')
if [ "x${previous}" != "x" ] ; then if [ "x${previous}" != "x" ] ; then
change_id=$(echo "$change_info" | grep "^change" | awk '{print $2}') change_id=$(echo "$change_info" | grep "^change" | awk '{print $2}')

View File

@ -24,7 +24,7 @@ git review -s
# See if there is an open change in the transifex/translations topic # See if there is an open change in the transifex/translations topic
# If so, get the change id for the existing change for use in the commit msg. # If so, get the change id for the existing change for use in the commit msg.
change_info=`ssh -p 29418 review.openstack.org gerrit query --current-patch-set status:open project:$ORG/$PROJECT topic:transifex/translations owner:jenkins` change_info=`ssh -p 29418 proposal-bot@review.openstack.org gerrit query --current-patch-set status:open project:$ORG/$PROJECT topic:transifex/translations owner:proposal-bot`
previous=`echo "$change_info" | grep "^ number:" | awk '{print $2}'` previous=`echo "$change_info" | grep "^ number:" | awk '{print $2}'`
if [ "x${previous}" != "x" ] ; then if [ "x${previous}" != "x" ] ; then
change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'` change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'`

View File

@ -34,7 +34,7 @@ git review -s
# See if there is an open change in the transifex/translations topic # See if there is an open change in the transifex/translations topic
# If so, get the change id for the existing change for use in the commit msg. # If so, get the change id for the existing change for use in the commit msg.
change_info=`ssh -p 29418 review.openstack.org gerrit query --current-patch-set status:open project:openstack/$PROJECT topic:transifex/translations owner:jenkins` change_info=`ssh -p 29418 proposal-bot@review.openstack.org gerrit query --current-patch-set status:open project:openstack/$PROJECT topic:transifex/translations owner:proposal-bot`
previous=`echo "$change_info" | grep "^ number:" | awk '{print $2}'` previous=`echo "$change_info" | grep "^ number:" | awk '{print $2}'`
if [ "x${previous}" != "x" ] ; then if [ "x${previous}" != "x" ] ; then
change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'` change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'`