project-config/jenkins/jobs/groups.yaml
Anita Kuno 1d21cd635f Reorganizes project-config
This repo was created from filter branching the openstack-infra/
config repo. This process brought a lot of cruft with it in the
form of directories that we no longer need. This patch removes
that cruft so we begin with a tidier repo.

Change-Id: Ibffad1b11c0c5f84eedfb0365369f60c4961a0f3
2014-09-25 11:41:04 -04:00

74 lines
2.5 KiB
YAML

- job:
name: gate-groups-unittests
node: 'bare-precise'
builders:
- revoke-sudo
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
# fetch drush
mkdir drush
curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1
# build distribution
export PATH=./drush:$PATH
sh scripts/dev-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: 'groups-release-{branch-designator}'
node: '{node}'
builders:
- revoke-sudo
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
# fetch drush
mkdir drush
curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1
# build distribution
export PATH=./drush:$PATH
sh scripts/dev-build.sh
# Clean/create a tarball directory
rm -rf tarballs
mkdir -p tarballs
# Create an archive tarball.
tar -czf groups-$PROJECT_VER.tar.gz publish/
cp groups-$PROJECT_VER.tar.gz tarballs/groups-latest.tar.gz
mv groups-$PROJECT_VER.tar.gz tarballs/
# generate md5 checksums
cd tarballs
md5sum groups-$PROJECT_VER.tar.gz > groups-$PROJECT_VER.md5
sed s/$PROJECT_VER/latest/g groups-$PROJECT_VER.md5 > groups-latest.md5
cd ..
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/groups/'
source: 'tarballs/*.tar.gz'
keep-hierarchy: false
copy-after-failure: false
- target: 'tarballs/groups/'
source: 'tarballs/*.md5'
keep-hierarchy: false
copy-after-failure: false