diff --git a/modules/jenkins/files/slave_scripts/propose_requirements_update.sh b/modules/jenkins/files/slave_scripts/propose_requirements_update.sh index c57a6c116f..339a449dd3 100755 --- a/modules/jenkins/files/slave_scripts/propose_requirements_update.sh +++ b/modules/jenkins/files/slave_scripts/propose_requirements_update.sh @@ -16,6 +16,7 @@ INITIAL_COMMIT_MSG="Updated from global requirements" TOPIC="openstack/requirements" USERNAME=${USERNAME:-$USER} BRANCH=$ZUUL_REF +ALL_SUCCESS=0 if [ -z "$BRANCH" ] ; then echo "No branch set, exiting." @@ -60,11 +61,8 @@ EOF # make sure the project even has this branch if git branch -a | grep -q "^ remotes/origin/$BRANCH$" ; then - git checkout $BRANCH + git checkout origin/${BRANCH} git review -s - if [ -n "$change_id" ] ; then - git review -d $change_id - fi popd python update.py $PROJECT_DIR @@ -73,15 +71,22 @@ EOF if ! git diff --exit-code HEAD ; then # Commit and review git_args="-a -F-" - if [ -n "$change_id" ] ; then - git_args="--amend $git_args" - fi git commit $git_args <