system-config/modules/openstack_project/files/jenkins_job_builder/config/jenkins-plugin-jobs.yaml
Khai Do 5bb2daaacb supress maven download progress messages
supress download progress message to make maven build
logs a little cleaner.

Change-Id: I38c6945436553dbfc71854405d1661e8fb828c6a
2013-09-11 14:40:32 -07:00

92 lines
2.2 KiB
YAML

# usig a freestyle project to work around jenkins bug:
# https://issues.jenkins-ci.org/browse/JENKINS-14193
- job-template:
name: 'gate-{name}-build'
node: precise
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
- inject:
properties-file: maven.properties
- maven-target:
maven-version: Maven3
pom: pom.xml
goals: 'clean package -B'
properties:
- project-version=${{PROJECT_VER}}
publishers:
- console-log
- job-template:
name: '{name}-hpi-artifact'
node: precise
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/maven-properties.sh
- inject:
properties-file: maven.properties
- maven-target:
maven-version: Maven3
pom: pom.xml
goals: 'clean package -B'
properties:
- project-version=${{PROJECT_VER}}
- shell: |
cp ./target/{name}.hpi ./target/{name}-$PROJECT_VER.hpi
publishers:
- war:
site: 'tarballs.openstack.org'
warfile: 'target/{name}-${{PROJECT_VER}}.hpi'
target: 'tarballs/ci/{name}'
- console-log
- job-template:
name: '{name}-jenkinsci-upload'
node: pypi
builders:
- shell: |
#!/bin/bash -xe
TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'`
FILENAME_HPI="{name}-$TAG.hpi"
# copy plugin artifacts from tarballs to local workspace
rm -rf *.hpi
curl -o $FILENAME_HPI http://{tarball-site}/ci/{name}/$FILENAME_HPI
# deploy to maven repository
FILENAME_POM="{name}-$TAG.pom"
/usr/local/jenkins/slave_scripts/jenkinsci-upload.sh {name} $TAG \
$FILENAME_POM $FILENAME_HPI
publishers:
- console-log
- job-group:
name: jenkins-plugin-jobs
jobs:
- 'gate-{name}-build'
- '{name}-hpi-artifact'
- '{name}-jenkinsci-upload'