2017-04-07 07:43:39 +02:00
|
|
|
- builder:
|
|
|
|
name: gerrit-buck-checkout
|
|
|
|
builders:
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
CLONEMAP=`mktemp`
|
|
|
|
function cleanup {
|
|
|
|
rm -f $CLONEMAP
|
|
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
cat > $CLONEMAP << EOF
|
|
|
|
clonemap:
|
|
|
|
- name: openstack-infra/gerrit
|
|
|
|
dest: gerrit
|
|
|
|
EOF
|
|
|
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \
|
|
|
|
--cache-dir /opt/git \
|
|
|
|
git://git.openstack.org openstack-infra/gerrit
|
|
|
|
|
2013-12-05 20:55:42 +00:00
|
|
|
- job:
|
2015-07-16 20:03:01 +02:00
|
|
|
name: gate-gerrit-buck
|
2016-03-09 20:09:24 +01:00
|
|
|
node: ubuntu-trusty
|
2013-12-05 20:55:42 +00:00
|
|
|
|
|
|
|
wrappers:
|
2014-05-27 14:51:16 -07:00
|
|
|
- build-timeout:
|
2013-12-05 20:55:42 +00:00
|
|
|
timeout: 40
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
2016-03-09 20:09:24 +01:00
|
|
|
- install-distro-packages
|
2014-03-21 12:00:06 -07:00
|
|
|
- revoke-sudo
|
2014-06-24 11:57:44 +10:00
|
|
|
- install-buck
|
2017-04-07 07:43:39 +02:00
|
|
|
- gerrit-buck-checkout
|
2013-12-05 20:55:42 +00:00
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
2014-06-24 11:57:44 +10:00
|
|
|
export PATH=`pwd`/buck/bin:$PATH
|
2013-12-05 20:55:42 +00:00
|
|
|
cd gerrit
|
2014-02-27 15:16:50 -08:00
|
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
2014-06-30 21:35:52 -07:00
|
|
|
source version.properties
|
2013-12-05 20:55:42 +00:00
|
|
|
buck clean
|
2015-04-08 16:21:53 -07:00
|
|
|
buck test --all --exclude slow
|
2013-12-05 20:55:42 +00:00
|
|
|
buck build release
|
2016-11-16 13:19:53 -08:00
|
|
|
cp buck-out/gen/release/release.war buck-out/gen/gerrit-$PROJECT_VER.war
|
2013-12-05 20:55:42 +00:00
|
|
|
|
|
|
|
publishers:
|
|
|
|
- war:
|
2014-06-24 11:57:44 +10:00
|
|
|
warfile: 'gerrit/buck-out/gen/gerrit-*.war'
|
2013-12-05 20:55:42 +00:00
|
|
|
target: 'tarballs/ci/test'
|
|
|
|
- console-log
|
|
|
|
|
|
|
|
|
|
|
|
- job:
|
|
|
|
name: gerrit-package-buck
|
2016-03-09 20:09:24 +01:00
|
|
|
node: ubuntu-trusty
|
2013-12-05 20:55:42 +00:00
|
|
|
|
|
|
|
wrappers:
|
2014-05-27 14:51:16 -07:00
|
|
|
- build-timeout:
|
2013-12-05 20:55:42 +00:00
|
|
|
timeout: 40
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
2016-03-09 20:09:24 +01:00
|
|
|
- install-distro-packages
|
2014-03-21 12:00:06 -07:00
|
|
|
- revoke-sudo
|
2014-06-24 11:57:44 +10:00
|
|
|
- install-buck
|
2017-04-07 07:43:39 +02:00
|
|
|
- gerrit-buck-checkout
|
2013-12-05 20:55:42 +00:00
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
2014-06-24 11:57:44 +10:00
|
|
|
export PATH=`pwd`/buck/bin:$PATH
|
2013-12-05 20:55:42 +00:00
|
|
|
cd gerrit
|
2014-02-27 15:16:50 -08:00
|
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
2014-06-30 21:35:52 -07:00
|
|
|
source version.properties
|
2013-12-05 20:55:42 +00:00
|
|
|
buck clean
|
|
|
|
buck build release
|
2016-11-16 13:19:53 -08:00
|
|
|
cp buck-out/gen/release/release.war buck-out/gen/gerrit-$PROJECT_VER.war
|
2013-12-05 20:55:42 +00:00
|
|
|
|
|
|
|
publishers:
|
|
|
|
- war:
|
2014-06-24 11:57:44 +10:00
|
|
|
warfile: 'gerrit/buck-out/gen/gerrit-*.war'
|
2013-12-05 20:55:42 +00:00
|
|
|
target: 'tarballs/ci/gerrit'
|
2013-07-09 10:53:27 -07:00
|
|
|
- console-log
|