system-config/modules/openstack_project/files/jenkins_job_builder/config/groups.yaml
Marton Kiss 15761d181a Update groups gating scripts
Community portal build process failed due php package deployment
permission errors. This patch add php5-cli package to jenkins slave
and relocate building script from groups project to groups.yaml file.

Change-Id: I462be6bf1ea4e647e262f15427f74fab36e9c5d6
Closes-Bug: 1278344
2014-02-12 15:23:38 +01:00

64 lines
2.0 KiB
YAML

- job:
name: gate-groups-unittests
node: '{node}'
builders:
- 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
./drush/drush make build-groups.make dist
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:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
- inject:
properties-file: maven.properties
- 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
./drush/drush make build-groups.make dist
# Clean/create a tarball directory
rm -rf tarballs
mkdir -p tarballs
# Create an archive tarball.
tar -czf groups-$PROJECT_VER.tar.gz dist/
cp groups-$PROJECT_VER.tar.gz tarballs/groups-latest.tar.gz
mv groups-$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/groups/'
source: 'tarballs/*.tar.gz'
keep-hierarchy: false
copy-after-failure: false