project-config/jenkins/jobs/gerrit.yaml
Andreas Jaeger 860e5d9534 Convert gerrit jobs to ubuntu-trusty
Convert jobs in gerrit.yaml from bare-trusty to ubuntu-trusty.

Change-Id: I5790d23e150bbe5835a172849895f87841609a25
2016-03-09 20:09:24 +01:00

66 lines
1.8 KiB
YAML

- job:
name: gate-gerrit-buck
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- install-distro-packages
- revoke-sudo
- install-buck
- shell: |
#!/bin/bash -xe
export PATH=`pwd`/buck/bin:$PATH
mkdir -p gerrit
cd gerrit
/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
buck clean
buck test --all --exclude slow
buck build release
cp buck-out/gen/release.war buck-out/gen/gerrit-$PROJECT_VER.war
publishers:
- war:
site: 'tarballs.openstack.org'
warfile: 'gerrit/buck-out/gen/gerrit-*.war'
target: 'tarballs/ci/test'
- console-log
- job:
name: gerrit-package-buck
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- install-distro-packages
- revoke-sudo
- install-buck
- shell: |
#!/bin/bash -xe
export PATH=`pwd`/buck/bin:$PATH
mkdir -p gerrit
cd gerrit
/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
buck clean
buck build release
cp buck-out/gen/release.war buck-out/gen/gerrit-$PROJECT_VER.war
publishers:
- war:
site: 'tarballs.openstack.org'
warfile: 'gerrit/buck-out/gen/gerrit-*.war'
target: 'tarballs/ci/gerrit'
- console-log