system-config/modules/openstack_project/files/jenkins_job_builder/config/pypi-jobs.yaml
James E. Blair 12accf97d9 Use a different path for console logs for post jobs.
Change-Id: I42846e6fa78876115c9dcb236260de50b76329f2
Reviewed-on: https://review.openstack.org/11726
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-21 17:22:36 +00:00

71 lines
1.3 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}'
- console-log-post
- 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}'
- console-log-post
- job-group:
name: pypi-jobs
jobs:
- '{name}-docs'
- '{name}-sdist-tarball'
- '{name}-pypi'