
This change configures all jobs to use the new build-timeout macro. This macro enables the following: 1. exports a 'BUILD_TIMEOUT' environment variable which is set to the timeout value. 2. sets the build to a failed state when a timeout occurs. Change-Id: Iebda7cccc2f808805a9b2d744c11892d1bf3bdef
203 lines
4.8 KiB
YAML
203 lines
4.8 KiB
YAML
- job:
|
|
name: check-gerrit-unittests
|
|
project-type: maven
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
prebuilders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- gerrit-preclean
|
|
|
|
maven:
|
|
maven-name: Maven3
|
|
root-module:
|
|
group-id: com.google.gerrit
|
|
artifact-id: gerrit-parent
|
|
goals: 'clean package -Dgerrit.include-documentation=1 -X -B'
|
|
|
|
postbuilders:
|
|
- gerrit-postrun
|
|
|
|
publishers:
|
|
- war:
|
|
site: 'tarballs.openstack.org'
|
|
warfile: 'gerrit-war/target/gerrit*.war'
|
|
target: 'tarballs/ci/test/'
|
|
- console-log
|
|
|
|
|
|
- job:
|
|
name: gate-gerrit-unittests
|
|
project-type: maven
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
prebuilders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- gerrit-preclean
|
|
|
|
maven:
|
|
maven-name: Maven3
|
|
root-module:
|
|
group-id: com.google.gerrit
|
|
artifact-id: gerrit-parent
|
|
goals: 'clean package -Dgerrit.include-documentation=1 -X -B'
|
|
|
|
postbuilders:
|
|
- gerrit-postrun
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job:
|
|
name: gerrit-package
|
|
project-type: maven
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
prebuilders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- gerrit-preclean
|
|
|
|
maven:
|
|
maven-name: Maven3
|
|
root-module:
|
|
group-id: com.google.gerrit
|
|
artifact-id: gerrit-parent
|
|
goals: 'clean package -Dgerrit.include-documentation=1 -X -B'
|
|
|
|
postbuilders:
|
|
- gerrit-postrun
|
|
|
|
publishers:
|
|
- war:
|
|
site: 'tarballs.openstack.org'
|
|
warfile: 'gerrit-war/target/gerrit*.war'
|
|
target: 'tarballs/ci/gerrit'
|
|
- console-log
|
|
|
|
- job:
|
|
name: check-gerrit-buck
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 40
|
|
- timestamps
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
mkdir -p gerrit
|
|
cd gerrit
|
|
/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
cd gerrit
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
|
- inject:
|
|
properties-file: gerrit/version.properties
|
|
- install-buck
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PATH=`pwd`/buck/bin:$PATH
|
|
cd gerrit
|
|
buck clean
|
|
buck build release
|
|
- shell: "cp gerrit/buck-out/gen/release.war gerrit/buck-out/gen/gerrit-$PROJECT_VER.war"
|
|
|
|
publishers:
|
|
- war:
|
|
site: 'tarballs.openstack.org'
|
|
warfile: 'gerrit/buck-out/gen/gerrit-${PROJECT_VER}.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
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
mkdir -p gerrit
|
|
cd gerrit
|
|
/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
cd gerrit
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
|
- inject:
|
|
properties-file: gerrit/version.properties
|
|
- install-buck
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PATH=`pwd`/buck/bin:$PATH
|
|
cd gerrit
|
|
buck clean
|
|
buck build release
|
|
- shell: "cp gerrit/buck-out/gen/release.war gerrit/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
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
mkdir -p gerrit
|
|
cd gerrit
|
|
/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
cd gerrit
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
|
- inject:
|
|
properties-file: gerrit/version.properties
|
|
- install-buck
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PATH=`pwd`/buck/bin:$PATH
|
|
cd gerrit
|
|
buck clean
|
|
buck build release
|
|
- shell: "cp gerrit/buck-out/gen/release.war gerrit/buck-out/gen/gerrit-$PROJECT_VER.war"
|
|
|
|
publishers:
|
|
- war:
|
|
site: 'tarballs.openstack.org'
|
|
warfile: 'gerrit/buck-out/gen/gerrit-${PROJECT_VER}.war'
|
|
target: 'tarballs/ci/gerrit'
|
|
- console-log
|