ae24700d8e
This sets up a gerrit 2.13 build for gerrit core and its associated plugins. NOTICE: 1. Gerrit 2.13 build puts the release.war in buck-out/gen/release/release.war instead of buck-out/gen/release.war 2. Currently the latest 2.13 release is 2.13.2 however we are aiming for 2.13.3 Change-Id: Icf4b5f32594570de5a51c37c9f7bb5505b640a06
66 lines
1.8 KiB
YAML
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/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/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
|