Removed or changed residual uses of GERRIT_BRANCH and GERRIT_PROJECT to ZUUL_* as a follow-on to the gerrit-git-prep removal in change https://review.openstack.org/#/c/12023/ . Change-Id: Ie87035fea8867444f35ead3036cb7bf57cd57406
30 lines
719 B
Bash
Executable File
30 lines
719 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
# Simulate what Jenkins does with the devstack-gate script.
|
|
|
|
NODE_IP_ADDR=$1
|
|
|
|
cat >$WORKSPACE/test-env.sh <<EOF
|
|
export WORKSPACE=/home/jenkins/workspace
|
|
export DEVSTACK_GATE_PREFIX=wip-
|
|
export SKIP_DEVSTACK_GATE_PROJECT=1
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export ZUUL_BRANCH=master
|
|
export ZUUL_PROJECT=testing
|
|
export JOB_NAME=test
|
|
export BUILD_NUMBER=42
|
|
export GERRIT_CHANGE_NUMBER=1234
|
|
export GERRIT_PATCHSET_NUMBER=1
|
|
EOF
|
|
|
|
rsync -az --delete $WORKSPACE/ jenkins@$NODE_IP_ADDR:workspace/
|
|
RETVAL=$?
|
|
if [ $RETVAL != 0 ]; then
|
|
exit $RETVAL
|
|
fi
|
|
|
|
rm $WORKSPACE/test-env.sh
|
|
ssh jenkins@$NODE_IP_ADDR '. workspace/test-env.sh && cd workspace && ./devstack-gate/devstack-vm-gate-wrap.sh'
|
|
echo "done"
|
|
#RETVAL=$?
|