project-config/jenkins/jobs/gerrit-plugin-jobs.yaml
Andreas Jaeger 13c958d7f2 gerrit-plugin-jobs: Use ubuntu-trusty
Convert {plugin-name}-gerrit-plugin-{plugin-branch} from bare-trusty
usage to ubuntu-trusty.

Change-Id: I6b8e5315edbe98f177db68a075407b59556b96f1
2016-03-10 06:33:03 +00:00

34 lines
1.1 KiB
YAML

- job-template:
name: '{plugin-name}-gerrit-plugin-{plugin-branch}'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 30
- timestamps
builders:
- install-distro-packages
- revoke-sudo
- install-buck
- shell: |
#!/bin/bash -xe
export PATH=`pwd`/buck/bin:$PATH
rm -rf gerrit
git clone -b {gerrit-branch} {gerrit-project}
git clone -b {plugin-branch} {plugin-project} gerrit/plugins/{plugin-name}
cd gerrit/plugins/{plugin-name}
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
cd $WORKSPACE/gerrit
buck clean
buck build plugins/{plugin-name}:{plugin-name}
cp ./buck-out/gen/plugins/{plugin-name}/{plugin-name}.jar ./buck-out/gen/plugins/{plugin-name}/{plugin-name}-$PROJECT_VER.jar
publishers:
- war:
site: '{tarball-site}'
warfile: 'gerrit/buck-out/gen/plugins/{plugin-name}/{plugin-name}-*.jar'
target: 'tarballs/ci/gerrit/plugins/{plugin-name}'
- console-log