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
This commit is contained in:
Clark Boylan 2013-07-08 22:45:59 -07:00 committed by Jenkins
parent fcb166dca6
commit f7d8a94095

View File

@ -22,9 +22,14 @@
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
function post_test_hook {
bash -xe $BASE/new/pbr/tools/integration.sh $PROJECTS $BASE
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
@ -35,7 +40,7 @@
site: 'static.openstack.org'
files:
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '/home/jenkins/.pip/pip.log'
source: '**/pip.log'
keep-hierarchy: false
copy-after-failure: true
- console-log