Use proposal bot username in proposal jobs.
After the switch to using the proposal-bot gerrit user in proposal jobs some jobs continued to attempted to use the jenkins user. Fix that and use the proposal-bot user. Change-Id: I146b6ea29d66bd171072e6529413efcc5cae3d8d
This commit is contained in:
parent
fdddcd6b97
commit
8c76adbad3
@ -14,7 +14,7 @@
|
||||
|
||||
INITIAL_COMMIT_MSG="Updated from global requirements"
|
||||
TOPIC="openstack/requirements"
|
||||
USERNAME=${USERNAME:-$USER}
|
||||
USERNAME="proposal-bot"
|
||||
BRANCH=$ZUUL_REF
|
||||
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
|
||||
# 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:$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}')
|
||||
if [ "x${previous}" != "x" ] ; then
|
||||
change_id=$(echo "$change_info" | grep "^change" | awk '{print $2}')
|
||||
|
@ -24,7 +24,7 @@ git review -s
|
||||
|
||||
# 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.
|
||||
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}'`
|
||||
if [ "x${previous}" != "x" ] ; then
|
||||
change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'`
|
||||
|
@ -34,7 +34,7 @@ git review -s
|
||||
|
||||
# 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.
|
||||
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}'`
|
||||
if [ "x${previous}" != "x" ] ; then
|
||||
change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'`
|
||||
|
Loading…
Reference in New Issue
Block a user