project-config/jenkins/jobs/openstackid.yaml
Paul Belanger 322d7e5dfb
Ensure console-log is our last publisher
This is related to zuulv25, we make sure console-log is the last
publisher to ensure zuul-launcher logs are also uploaded.

Change-Id: I1616b97fad2b97fb9e977ec14543aab4bc673b58
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-16 18:32:16 -05:00

69 lines
2.1 KiB
YAML

- job:
name: gate-openstackid-unittests
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- shell: |
#!/bin/bash -xe
sudo php5enmod mcrypt
- revoke-sudo
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/php-laravel-build.sh
publishers:
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: './reports/**'
keep-hierarchy: true
copy-after-failure: true
- console-log
- job-template:
name: 'openstackid-release-{job-suffix}'
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- shell: |
#!/bin/bash -xe
sudo php5enmod mcrypt
- revoke-sudo
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/version-properties.sh
- shell: |
#!/bin/bash -xe
source version.properties
/usr/local/jenkins/slave_scripts/php-laravel-build.sh
# Clone to dist
rm -rf dist
mkdir dist
rsync -arv --exclude ".git*" --exclude tarballs --exclude dist . dist
# Clean/create a tarball directory
rm -rf tarballs
mkdir -p tarballs
# Create an archive tarball.
tar -czf openstackid-$PROJECT_VER.tar.gz dist/
cp openstackid-$PROJECT_VER.tar.gz tarballs/openstackid-latest.tar.gz
mv openstackid-$PROJECT_VER.tar.gz tarballs/
publishers:
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: './reports/**'
keep-hierarchy: true
copy-after-failure: true
- target: 'tarballs/openstackid/'
source: 'tarballs/*.tar.gz'
keep-hierarchy: false
copy-after-failure: false
- console-log