system-config/modules/openstack_project/files/jenkins_job_builder/config/pypi-jobs.yaml
James E. Blair f7f2760fe0 Set the Zuul/Jenkins base log URL in a function
And use that when constructing log paths and URLs.  Use a substr
of the change id or commit sha when constructing URLs so the log
directories are deeper.

Make copying the test results a macro (it's used in several places).

Update the gearman log client to take advantage of the new parameter.

Requires https://review.openstack.org/#/c/36304/

Change-Id: I64faa35eddc4105271efa3de4f83b608b77655c2
2013-07-19 10:36:31 -07:00

27 lines
602 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 --fail -o $FILENAME http://{tarball-site}/{name}/$FILENAME
# Make sure we actually got a gzipped file
file -b $FILENAME | grep gzip
- shell: |
/usr/local/jenkins/slave_scripts/pypi-upload.sh {name}
publishers:
- console-log
- job-group:
name: pypi-jobs
jobs:
- '{name}-pypi-upload'