Merge "Fix bashate errors"
This commit is contained in:
commit
ef990e3e44
@ -25,7 +25,8 @@ BRANCH=${1}
|
|||||||
RESULT_DIR="$BRANCH-$(date '+%Y%m%d-%H%M')"
|
RESULT_DIR="$BRANCH-$(date '+%Y%m%d-%H%M')"
|
||||||
mkdir -p $RESULT_DIR
|
mkdir -p $RESULT_DIR
|
||||||
|
|
||||||
OPENSTACK_TEAMS=$(grep team deliverables/${BRANCH}/*.yaml | cut -f3 -d: | sort -u)
|
OPENSTACK_TEAMS=$(grep team deliverables/${BRANCH}/*.yaml | cut -f3 -d: | \
|
||||||
|
sort -u)
|
||||||
|
|
||||||
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
BASEDIR=$(dirname $TOOLSDIR)
|
BASEDIR=$(dirname $TOOLSDIR)
|
||||||
@ -35,9 +36,9 @@ function get_open_patches {
|
|||||||
REPO=$1
|
REPO=$1
|
||||||
|
|
||||||
OPEN_CHANGES=$(ssh -p 29418 review.openstack.org gerrit query status:open \
|
OPEN_CHANGES=$(ssh -p 29418 review.openstack.org gerrit query status:open \
|
||||||
project:${REPO} branch:stable/${BRANCH} | \
|
project:${REPO} branch:stable/${BRANCH} | \
|
||||||
awk '/url:|commitMessage:/ {$1=""; print $0}' | \
|
awk '/url:|commitMessage:/ {$1=""; print $0}' | \
|
||||||
awk '!(NR%2){print buf " --" $0}{buf=$0}')
|
awk '!(NR%2){print buf " --" $0}{buf=$0}')
|
||||||
|
|
||||||
if [ -n "${OPEN_CHANGES}" ]; then
|
if [ -n "${OPEN_CHANGES}" ]; then
|
||||||
title "Changes waiting for review in ${REPO} (stable/${BRANCH})"
|
title "Changes waiting for review in ${REPO} (stable/${BRANCH})"
|
||||||
@ -48,15 +49,19 @@ function get_open_patches {
|
|||||||
for team in ${OPENSTACK_TEAMS}; do
|
for team in ${OPENSTACK_TEAMS}; do
|
||||||
echo "Checking repositories of team: ${team}"
|
echo "Checking repositories of team: ${team}"
|
||||||
|
|
||||||
REPOS=$(tox -e venv -- list-deliverables --tag stable:follows-policy -r --series ${BRANCH} --team ${team} | grep "^openstack/")
|
REPOS=$(tox -e venv -- list-deliverables --tag stable:follows-policy -r \
|
||||||
|
--series ${BRANCH} --team ${team} | grep "^openstack/")
|
||||||
|
|
||||||
if [ -n "${REPOS}" ]; then
|
if [ -n "${REPOS}" ]; then
|
||||||
echo "List of open and unreleased changes of team '${team}' (stable/${BRANCH})" >${RESULT_DIR}/${team}.txt
|
echo "List of open and unreleased changes of team '${team}' " \
|
||||||
|
"(stable/${BRANCH})" >${RESULT_DIR}/${team}.txt
|
||||||
for repo in ${REPOS}; do
|
for repo in ${REPOS}; do
|
||||||
get_open_patches ${repo} >>${RESULT_DIR}/${team}.txt
|
get_open_patches ${repo} >>${RESULT_DIR}/${team}.txt
|
||||||
tools/list_unreleased_changes.sh stable/${BRANCH} ${repo} >>${RESULT_DIR}/${team}.txt
|
tools/list_unreleased_changes.sh stable/${BRANCH} ${repo} >> \
|
||||||
|
${RESULT_DIR}/${team}.txt
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo " Tag stable:follows-policy not found for repositories of team '${team}'"
|
echo " Tag stable:follows-policy not found for repositories of team " \
|
||||||
|
"'${team}'"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user