c8697d93c5
In the past we didn't run the unit tests because they were flaky. We should give it another try since the build system now allows excluding certain test groups from running. I believ the slow tests were the culprit so we exlude it from the test run. Change-Id: Ib5af53e698635dc7feb6fa97cb88a4814080fd05
91 lines
2.5 KiB
YAML
91 lines
2.5 KiB
YAML
- job:
|
|
name: check-gerrit-buck
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- 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: gate-gerrit-buck
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- 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:
|
|
- console-log
|
|
|
|
- job:
|
|
name: gerrit-package-buck
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- 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
|