system-config/modules/openstack_project/files/jenkins_job_builder/config/pypi-jobs.yaml
James E. Blair 2003f3dd5c Collapse projcets into projects.yaml.
Rename yml files to yaml.

Change-Id: Ie87763b05537012e57081ee2b18fff6bca2a00bd
Reviewed-on: https://review.openstack.org/11169
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-10 18:56:42 +00:00

69 lines
1.2 KiB
YAML

- job-template:
name: '{name}-sdist-tarball'
project-type: freestyle
concurrent: true
node: precise
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
triggers:
- zuul-post
logrotate:
daysToKeep: 28
numToKeep: -1
artifactDaysToKeep: -1
artifactNumToKeep: -1
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
BRANCH=$GERRIT_REFNAME
BRANCH_PATH=`echo $BRANCH | tr / -`
tox -v -evenv python setup.py sdist
cp dist/* dist/{name}-$BRANCH_PATH.tar.gz
publishers:
- tarball:
project: '{name}'
site: '{tarball-publisher-site}'
- job-template:
name: '{name}-pypi'
project-type: freestyle
concurrent: true
node: pypi
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
triggers:
- zuul-post
builders:
- gerrit-git-prep
- shell: tox -v -evenv python setup.py sdist upload
publishers:
- tarball:
project: '{name}'
site: '{tarball-publisher-site}'
- job-group:
name: pypi-jobs
jobs:
- '{name}-docs'
- '{name}-sdist-tarball'
- '{name}-pypi'