project-config/jenkins/jobs/gerrit.yaml
Andreas Jaeger b64f10151b Remove gerrit-git-prep.sh
Remove usage of gerrit-git-prep.sh from gerrit-buck jobs and replace it
with zuul-cloner usage.

Remove gerrit-git-prep.sh file, it's not used anymore now.

Change-Id: I968ce8b726fbbb54260f02d869944d91128bac52
2017-04-07 07:47:11 +02:00

81 lines
2.0 KiB
YAML

- 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
- job:
name: gate-gerrit-buck
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- install-distro-packages
- revoke-sudo
- install-buck
- gerrit-buck-checkout
- shell: |
#!/bin/bash -xe
export PATH=`pwd`/buck/bin:$PATH
cd gerrit
/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:
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
- gerrit-buck-checkout
- shell: |
#!/bin/bash -xe
export PATH=`pwd`/buck/bin:$PATH
cd gerrit
/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:
warfile: 'gerrit/buck-out/gen/gerrit-*.war'
target: 'tarballs/ci/gerrit'
- console-log