4a61bc67f5
We have now some rather long job-template names, shorten them with replacing job-suffix with suffix. Before this change we had 1500 usages of job-suffix and 700 of just suffix. This change therefore unifies to one setting. Note that this does not change any job names at all, they are unchanged, it changes and shortens only the names of job-templates. Change-Id: I514df039a848d9f6619bca3adc05dfb84a761fc9
69 lines
2.1 KiB
YAML
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-{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
|