3268fd0175
Change-Id: I846df0c5476046fb1dd5af0d012bd14b5f79a1c4 Reviewed-on: https://review.openstack.org/19666 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
28 lines
540 B
YAML
28 lines
540 B
YAML
- job-template:
|
|
name: '{name}-pypi-upload'
|
|
node: pypi
|
|
|
|
triggers:
|
|
- zuul-post
|
|
|
|
builders:
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'`
|
|
FILENAME="{name}-$TAG.tar.gz"
|
|
|
|
rm -rf *tar.gz
|
|
curl -o $FILENAME http://{tarball-site}/{name}/$FILENAME
|
|
|
|
- shell: |
|
|
/usr/local/jenkins/slave_scripts/pypi-upload.sh {name}
|
|
|
|
publishers:
|
|
- console-log-post
|
|
|
|
|
|
- job-group:
|
|
name: pypi-jobs
|
|
jobs:
|
|
- '{name}-pypi-upload'
|