Monty Taylor bca812d090 Simplify tarball and pypi publishing
Only publish distinct tarballs to tarballs.o.o for tags.
Use tarballs from tarballs.o.o when uploading to pypi instead of rebuilding.
Publish $project-$branch.tar.gz tarballs for every commit.

Change-Id: Ifd2c3b8c9734875ffb15528f84409f44e2f842da
Reviewed-on: https://review.openstack.org/18797
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-01-08 02:16:57 +00:00

25 lines
506 B
YAML

- job-template:
name: '{name}-pypi-upload'
node: pypi
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'