12accf97d9
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
71 lines
1.3 KiB
YAML
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'
|