Update jobs for OpenDev
Follow OpenDev changes: * Use gerrit.opendev.org instead of gerrit.openstack.org * Use opendev.org insted of git.openstack.org * Follow move of openstack-infra/project-config to openstack/project-config Change-Id: Ic27ea41407abc0bdec29768e5ee5dca33f8adeda
This commit is contained in:
parent
d30040c817
commit
ee6468b9b4
@ -17,7 +17,7 @@ for p in $(cat openstack_modules.txt); do
|
|||||||
# TODO(emilien) we need to add support for stable branches
|
# TODO(emilien) we need to add support for stable branches
|
||||||
cat >> $DIR/Puppetfile <<EOF
|
cat >> $DIR/Puppetfile <<EOF
|
||||||
mod '$title',
|
mod '$title',
|
||||||
:git => 'https://git.openstack.org/openstack/puppet-$p',
|
:git => 'https://opendev.org/openstack/puppet-$p',
|
||||||
:ref => 'master'
|
:ref => 'master'
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
@ -105,7 +105,7 @@ for PROJECT in $PROJECTS; do
|
|||||||
#
|
#
|
||||||
# TODO(fungi): switch to zuul-cloner once we add a persistent git cache
|
# TODO(fungi): switch to zuul-cloner once we add a persistent git cache
|
||||||
# to proposal.slave.openstack.org
|
# to proposal.slave.openstack.org
|
||||||
if ! git clone https://git.openstack.org/$PROJECT.git; then
|
if ! git clone https://opendev.org/$PROJECT; then
|
||||||
# ALL_SUCCESS is being set to 1, which means that a failure condition
|
# ALL_SUCCESS is being set to 1, which means that a failure condition
|
||||||
# has been detected. The job will end in failure once it finishes
|
# has been detected. The job will end in failure once it finishes
|
||||||
# cycling through the remaining projects.
|
# cycling through the remaining projects.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Working variables
|
# Working variables
|
||||||
WHEELHOUSE_DIR=$1
|
WHEELHOUSE_DIR=$1
|
||||||
WORKING_DIR=$(pwd)/src/git.openstack.org/openstack/requirements
|
WORKING_DIR=$(pwd)/src/opendev.org/openstack/requirements
|
||||||
PYTHON_VERSION=$2
|
PYTHON_VERSION=$2
|
||||||
LOGS=$(pwd)/logs
|
LOGS=$(pwd)/logs
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ Options:
|
|||||||
--ref -- The git reference to check out. Defaults to HEAD.
|
--ref -- The git reference to check out. Defaults to HEAD.
|
||||||
|
|
||||||
--upstream -- The upstream server URL, without the git repo
|
--upstream -- The upstream server URL, without the git repo
|
||||||
part. Defaults to https://git.openstack.org
|
part. Defaults to https://opendev.org
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ WORKSPACE="."
|
|||||||
CACHE_DIR="${ZUUL_CACHE_DIR:-/opt/git}"
|
CACHE_DIR="${ZUUL_CACHE_DIR:-/opt/git}"
|
||||||
BRANCH="master"
|
BRANCH="master"
|
||||||
REF=""
|
REF=""
|
||||||
UPSTREAM="https://git.openstack.org"
|
UPSTREAM="https://opendev.org"
|
||||||
RETRY_LIMIT=3
|
RETRY_LIMIT=3
|
||||||
export GIT_HTTP_LOW_SPEED_TIME=300
|
export GIT_HTTP_LOW_SPEED_TIME=300
|
||||||
export GIT_HTTP_LOW_SPEED_LIMIT=1000
|
export GIT_HTTP_LOW_SPEED_LIMIT=1000
|
||||||
|
@ -79,13 +79,13 @@ function abandon_reviews {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
gerrit_query="--current-patch-set status:open project:$project branch:$BRANCH"
|
gerrit_query="--current-patch-set status:open project:$project branch:$BRANCH"
|
||||||
revisions=($(ssh -p 29418 review.openstack.org gerrit query $gerrit_query |
|
revisions=($(ssh -p 29418 review.opendev.org gerrit query $gerrit_query |
|
||||||
grep '^ revision: [a-f0-9]\{40\}$' | cut -b 15-))
|
grep '^ revision: [a-f0-9]\{40\}$' | cut -b 15-))
|
||||||
for rev in "${revisions[@]}"; do
|
for rev in "${revisions[@]}"; do
|
||||||
if [ $VERBOSE = true ]; then
|
if [ $VERBOSE = true ]; then
|
||||||
echo "Found commit $rev to abandon"
|
echo "Found commit $rev to abandon"
|
||||||
fi
|
fi
|
||||||
$DEBUG ssh -p 29418 review.openstack.org gerrit review --project $project --abandon --message \"$EOL_MESSAGE\" $rev
|
$DEBUG ssh -p 29418 review.opendev.org gerrit review --project $project --abandon --message \"$EOL_MESSAGE\" $rev
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ while (( "$#" )); do
|
|||||||
if ! [ -d $project/.git ]; then
|
if ! [ -d $project/.git ]; then
|
||||||
if ! [ -d $project ]; then
|
if ! [ -d $project ]; then
|
||||||
echo "$project not found on filesystem. Will attempt to clone"
|
echo "$project not found on filesystem. Will attempt to clone"
|
||||||
$DEBUG git clone https://git.openstack.org/$project $project
|
$DEBUG git clone https://opendev.org/$project $project
|
||||||
else
|
else
|
||||||
warning_message "$project is not a git repo"
|
warning_message "$project is not a git repo"
|
||||||
echo "skipping..."
|
echo "skipping..."
|
||||||
@ -128,7 +128,7 @@ while (( "$#" )); do
|
|||||||
# happens when a probject is no longer maintained.
|
# happens when a probject is no longer maintained.
|
||||||
user=`git config --global gitreview.username`
|
user=`git config --global gitreview.username`
|
||||||
warning_message "Guessing remote manually"
|
warning_message "Guessing remote manually"
|
||||||
git remote add $REMOTE ssh://$user@review.openstack.org:29418/$project.git
|
git remote add $REMOTE ssh://$user@review.opendev.org:29418/$project.git
|
||||||
else
|
else
|
||||||
git review -s
|
git review -s
|
||||||
fi
|
fi
|
||||||
|
@ -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.
|
||||||
|
|
||||||
PROJECT="openstack-infra/project-config"
|
PROJECT="openstack/project-config"
|
||||||
INITIAL_COMMIT_MSG="Normalize projects.yaml"
|
INITIAL_COMMIT_MSG="Normalize projects.yaml"
|
||||||
TOPIC="project-yaml-normalization"
|
TOPIC="project-yaml-normalization"
|
||||||
USERNAME="proposal-bot"
|
USERNAME="proposal-bot"
|
||||||
@ -30,7 +30,7 @@ change_id=""
|
|||||||
# 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 $USERNAME@review.openstack.org gerrit query --current-patch-set status:open project:$PROJECT topic:$TOPIC owner:$USERNAME)
|
change_info=$(ssh -p 29418 $USERNAME@review.opendev.org gerrit query --current-patch-set status:open project:$PROJECT topic:$TOPIC owner:$USERNAME)
|
||||||
previous=$(echo "$change_info" | grep "^ number:" | awk '{print $2}')
|
previous=$(echo "$change_info" | grep "^ number:" | awk '{print $2}')
|
||||||
if [ -n "$previous" ]; then
|
if [ -n "$previous" ]; then
|
||||||
change_id=$(echo "$change_info" | grep "^change" | awk '{print $2}')
|
change_id=$(echo "$change_info" | grep "^change" | awk '{print $2}')
|
||||||
|
Loading…
Reference in New Issue
Block a user