e6b2556fb3
This commit will copy the built gearman-plugin.hpi file to tarballs.o.o with an appended version identifier (i.e. tarballs.o.o/ci/gearman-plugin/gearman-plugin-${version}.hpi) Change-Id: Ib0fa29691db27a40507524488588c57760b70776 Reviewed-on: https://review.openstack.org/37139 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
92 lines
2.4 KiB
YAML
92 lines
2.4 KiB
YAML
# need to run gerrit-git-prep in maven-properties.sh script to work
|
|
# around jenkins bug: https://issues.jenkins-ci.org/browse/JENKINS-14193
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-build'
|
|
project-type: maven
|
|
node: precise
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 30
|
|
fail: true
|
|
- timestamps
|
|
- inject:
|
|
script-file: /usr/local/jenkins/slave_scripts/maven-properties.sh
|
|
- inject:
|
|
properties-file: maven.properties
|
|
|
|
maven:
|
|
maven-name: Maven3
|
|
root-module:
|
|
group-id: '{maven-group-id}'
|
|
artifact-id: '{name}'
|
|
root-pom: pom.xml
|
|
goals: 'clean package -Dproject-version=${{PROJECT_VER}}'
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: '{name}-hpi-artifact'
|
|
project-type: maven
|
|
node: precise
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 30
|
|
fail: true
|
|
- timestamps
|
|
- inject:
|
|
script-file: /usr/local/jenkins/slave_scripts/maven-properties.sh
|
|
- inject:
|
|
properties-file: maven.properties
|
|
|
|
maven:
|
|
maven-name: Maven3
|
|
root-module:
|
|
group-id: '{maven-group-id}'
|
|
artifact-id: '{name}'
|
|
root-pom: pom.xml
|
|
goals: 'clean package -Dmaven.test.skip=true -Dproject-version=${{PROJECT_VER}}'
|
|
|
|
postbuilders:
|
|
- 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-post
|
|
|
|
- job-template:
|
|
name: '{name}-jenkinsci-upload'
|
|
node: pypi
|
|
|
|
builders:
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'`
|
|
FILENAME="{name}-$TAG.hpi"
|
|
|
|
# copy plugin plugin artifacts from tarballs to local workspace
|
|
rm -rf *.hpi
|
|
curl -o $FILENAME http://{tarball-site}/ci/{name}/$FILENAME
|
|
|
|
# deploy plugin artifacts from workspace to repo.jenkins-ci.org
|
|
JENKINSCI_REPO="http://repo.jenkins-ci.org/list/releases/org/jenkins-ci/plugins"
|
|
JENKINSCI_REPO_CREDS="/home/jenkins/.jenkinsci-curl"
|
|
/usr/local/jenkins/slave_scripts/maven-upload.sh {name} $JENKINSCI_REPO $JENKINSCI_REPO_CREDS
|
|
|
|
publishers:
|
|
- console-log-post
|
|
|
|
- job-group:
|
|
name: jenkins-plugin-jobs
|
|
jobs:
|
|
- 'gate-{name}-build'
|
|
- '{name}-hpi-artifact'
|
|
- '{name}-jenkinsci-upload'
|