Clark Boylan f7d8a94095 Use proper ant file glob for copying pip.log.
* modules/openstack_project/files/jenkins_job_builder/config/pbr.yaml:
Jenkins requires a proper ant file glob as the source for the scp
plugin. The originally provided fully rooted path does not meet this
criteria. Copy the pip log from Jenkins' homedir to the job workspace
and swap the SCP file path with an ant glob that is valid.

Change-Id: If9f00a9c699d62ba38f46b55b52ef86203631fae
Reviewed-on: https://review.openstack.org/36178
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2013-07-09 16:43:49 +00:00

48 lines
1.4 KiB
YAML

- job:
name: gate-pbr-devstack-vm-rawinstall
node: devstack-precise
wrappers:
- timeout:
timeout: 120
fail: true
- timestamps
parameters:
- label:
name: NODE_LABEL
description: Label of node to use for this build
default: devstack-precise
builders:
- devstack-inprogress
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
function gate_hook {
bash -xe $GATE_SCRIPT_DIR/devstack-vm-gate.sh && \
$BASE/new/pbr/tools/integration.sh $PROJECTS $BASE
}
function post_test_hook {
cp /home/jenkins/.pip/pip.log ./pip.log
}
export -f gate_hook
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
- link-logs
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/pip.log'
keep-hierarchy: false
copy-after-failure: true
- console-log
- devstack-complete