Merge "Remove zuul-migrate job" into feature/zuulv3

This commit is contained in:
Zuul 2017-11-16 20:15:27 +00:00 committed by Gerrit Code Review
commit 9e20f12ca8
2 changed files with 0 additions and 77 deletions

View File

@ -28,19 +28,6 @@
- zuul/ansible/callback/.*
- playbooks/zuul-stream/.*
- job:
name: zuul-migrate
parent: unittests
run: playbooks/zuul-migrate/run.yaml
post-run: playbooks/zuul-migrate/post.yaml
# We're adding zuul to the required-projects so that we can also trigger
# this from project-config changes
required-projects:
- openstack-infra/openstack-zuul-jobs
- openstack-infra/project-config
- name: openstack-infra/zuul
override-branch: feature/zuulv3
- project:
name: openstack-infra/zuul
check:
@ -60,10 +47,6 @@
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
- zuul-stream-functional
- zuul-migrate:
files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
gate:
jobs:
- build-openstack-sphinx-docs:

View File

@ -1,60 +0,0 @@
#!/bin/bash
# Copyright (c) 2017 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Stupid script I'm using to test migration script locally
# Assumes project-config is adjacent to zuul and has the mapping file
OPTS=$(getopt -o v --long final -n $0 -- "$@")
if [ $? != 0 ] ; then
echo "Failed parsing options." >&2
exit 1
fi
eval set -- "$OPTS"
set -ex
FINAL=0
VERBOSE=""
while true; do
case "$1" in
--final)
FINAL=1
shift
;;
-v)
VERBOSE=-v
shift
;;
--)
shift
break
;;
esac
done
BASE_DIR=$(cd $(dirname $0)/../..; pwd)
cd $BASE_DIR/project-config
if [[ $FINAL = 1 ]] ; then
git reset --hard
fi
python3 $BASE_DIR/zuul/zuul/cmd/migrate.py --mapping=zuul/mapping.yaml \
zuul/layout.yaml jenkins/jobs nodepool/nodepool.yaml . $VERBOSE
if [[ $FINAL = 1 ]] ; then
find ../openstack-zuul-jobs/playbooks/legacy -maxdepth 1 -mindepth 1 \
-type d | xargs rm -rf
mv zuul.d/zuul-legacy-* ../openstack-zuul-jobs/zuul.d/
mv playbooks/legacy/* ../openstack-zuul-jobs/playbooks/legacy/
fi