Remove zuul-migrate job
The job does not work anymore since it tests migration of files in project-config that have been removed now. Depends-On: Ic17bb17222068b1b5cf3ac57c4614af42a679961 Change-Id: Ide024a72d68112e76c114afe685ea7edf586e013
This commit is contained in:
parent
c317fba760
commit
badc54be7e
17
.zuul.yaml
17
.zuul.yaml
|
@ -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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue