Khai Do dea3bdb050 rename maven-properties.sh script to version-properties.sh
Initially maven-properties.sh was intended to make maven projects use git versioning,
that's how it got the name.  However this filename is inappropriate because it's just a
generic script that retrieves git version info to allow builds to version their artifacts.
version-properties.sh is a much more appropriate name for this script.

Change-Id: I3ffc3e9e29bb626f4af5449f0413608a30ee79a0
2014-02-20 21:39:49 -08:00

60 lines
1.9 KiB
YAML

- job:
name: gate-openstackid-unittests
node: 'bare-precise'
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/php-laravel-build.sh
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: './reports/**'
keep-hierarchy: true
copy-after-failure: true
- job-template:
name: 'openstackid-release-{branch-designator}'
node: '{node}'
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/version-properties.sh
- inject:
properties-file: version.properties
- shell: |
#!/bin/bash -xe
/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:
- console-log
- 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