tripleo-quickstart/ci-scripts/include-gate-changes.sh
Ronelle Landy 29a08ba980 Copy all requirements files from gating repo to tripleo-quickstart
Currently, include-gate-changes only copies the requirements.txt
file. However, if modifications were made to any other
requirements file, those will be lost.
This review copies all requirements files so those changes
are maintained.

Change-Id: I8e19f6e949319d61696e9c35574fb525d11fcf99
2017-05-18 10:11:41 -04:00

24 lines
995 B
Bash

# Source this script from within other gating scripts to provide depends-on
# functionality for quickstart and quickstart-extras
# preparation steps to run with the gated changes
if [ "$JOB_TYPE" = "gate" ] || [ "$JOB_TYPE" = "dlrn-gate-check" ]; then
bash quickstart.sh \
--working-dir $WORKSPACE/ \
--no-clone \
--bootstrap \
--playbook gate-quickstart.yml \
--release ${CI_ENV:+$CI_ENV/}$RELEASE${REL_TYPE:+-$REL_TYPE} \
$OPT_ADDITIONAL_PARAMETERS \
$VIRTHOST
fi
# Rename tripleo-quickstart directory to include the gated change
if [ -d $WORKSPACE/tripleo-quickstart-gate-repo ]; then
mv $WORKSPACE/tripleo-quickstart $WORKSPACE/tripleo-quickstart-old
mv $WORKSPACE/tripleo-quickstart-gate-repo $WORKSPACE/tripleo-quickstart
cp $WORKSPACE/tripleo-quickstart-old/*requirements* $WORKSPACE/tripleo-quickstart/
# Change into the new quickstart directory to use the new changes
cd $WORKSPACE/tripleo-quickstart
fi