blob: 6c7e250006040e7913e87e235200580ddfdcf7cd [file] [log] [blame]
Monty Taylor245a3712017-08-07 16:42:23 -05001#!/bin/bash
2# Copyright (c) 2017 Red Hat, Inc.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13# implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Stupid script I'm using to test migration script locally
18# Assumes project-config is adjacent to zuul and has the mapping file
19
20BASE_DIR=$(cd $(dirname $0)/../..; pwd)
21cd $BASE_DIR/project-config
22python3 $BASE_DIR/zuul/zuul/cmd/migrate.py --mapping=zuul/mapping.yaml \
23 zuul/layout.yaml jenkins/jobs nodepool/nodepool.yaml .