Skip to content

Instantly share code, notes, and snippets.

@rm-you
Last active August 27, 2015 01:07
Show Gist options
  • Save rm-you/1d649847657b1f33a8e3 to your computer and use it in GitHub Desktop.
Save rm-you/1d649847657b1f33a8e3 to your computer and use it in GitHub Desktop.
export REPO_URL=https://review.openstack.org/p
export ZUUL_URL=/home/jenkins/workspace-cache
export WORKSPACE=/home/jenkins/workspace/testing
export ZUUL_PROJECT=openstack/barbican
export ZUUL_BRANCH=master
export ZUUL_REF=refs/changes/85/167885/27
git clone $REPO_URL/$ZUUL_PROJECT $ZUUL_URL/$ZUUL_PROJECT \
&& cd $ZUUL_URL/$ZUUL_PROJECT \
&& git checkout remotes/origin/$ZUUL_BRANCH
mkdir -p $WORKSPACE
cd $WORKSPACE
git clone --depth 1 https://github.com/openstack-infra/devstack-gate
# Testing code:
set -x
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=60
export ENABLED_SERVICES=tempest,keystone
export PROJECTS="openstack/barbican $PROJECTS"
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
function gate_hook {
$BASE/new/barbican/devstack/gate_hook.sh
}
export -f gate_hook
function post_test_hook {
cd /opt/stack/new/barbican/functionaltests
./post_test_hook.sh
}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
@rm-you
Copy link
Author

rm-you commented Aug 27, 2015

cd $WORKSPACE
&& git clone --depth 1 $REPO_URL/openstack-infra/devstack-gate
Cloning into 'devstack-gate'...
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header

@rm-you
Copy link
Author

rm-you commented Aug 27, 2015

++ run_command setup_workspace '$OVERRIDE_ZUUL_BRANCH' '$BASE/new'
++ local 'fn=setup_workspace $OVERRIDE_ZUUL_BRANCH $BASE/new'
++ local cmd=
++ read -r -d '' cmd
++ echo 'source '''/home/jenkins/workspace/testing/test_env.sh'''
source '''/home/jenkins/workspace/testing/devstack-gate/functions.sh'''
set -o errexit
tsfilter setup_workspace $OVERRIDE_ZUUL_BRANCH $BASE/new
executable=/bin/bash'

  • /tmp/ansible/bin/ansible all -f 5 -i /home/jenkins/workspace/testing/inventory -m shell -a 'source '''/home/jenkins/workspace/testing/test_env.sh'''
    source '''/home/jenkins/workspace/testing/devstack-gate/functions.sh'''
    set -o errexit
    tsfilter setup_workspace $OVERRIDE_ZUUL_BRANCH $BASE/new
    executable=/bin/bash'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment