- 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 post_test_hook {
              bash -xe $BASE/new/pbr/tools/integration.sh $PROJECTS $BASE
          }
          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: '/home/jenkins/.pip/pip.log'
              keep-hierarchy: false
              copy-after-failure: true
      - console-log
      - devstack-complete

- 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

Use proper ant file glob for copying pip.log.
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 <e81a02a9d6405977f63a769d9f6ec8ed9d924325@inaugust.com>
Approved: Monty Taylor <37c07a49ee3d5191376d758eb1d8298b34456b8e@inaugust.com>
Reviewed-by: Monty Taylor <37c07a49ee3d5191376d758eb1d8298b34456b8e@inaugust.com>
Tested-by: Jenkins
