Add jobs to publish gerritbot tarballs/to pypi.

Gerritbot should be installable via pip. To make this possible add
jobs to publish gerritbot tarballs and push gerritbot to pypi when tags
are added to gerritbot.

Change-Id: I5de346cd96a096809c9fe44d2117ebdb45a180c4
Reviewed-on: https://review.openstack.org/10910
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2012-08-06 12:28:19 -07:00 committed by Jenkins
parent d3e5dffa48
commit 373f45f844
2 changed files with 74 additions and 0 deletions

View File

@ -89,3 +89,73 @@ scm:
assignednode:
node: 'precise'
---
# tarball
main:
name: 'gerritbot-tarball'
review_site: 'review.openstack.org'
github_org: 'openstack-ci'
project: 'gerritbot'
concurrent: 'true'
timeout: 20
timeout_fail: true
logrotate:
daysToKeep: 28
numToKeep: -1
artifactDaysToKeep: -1
artifactNumToKeep: -1
triggers:
- zuul_post
builders:
- gerrit_git_prep
- shell: |
#!/bin/bash -xe
BRANCH=$GERRIT_REFNAME
BRANCH_PATH=`echo $BRANCH | tr / -`
tox -v -evenv python setup.py sdist upload
cp dist/* dist/gerritbot-$BRANCH_PATH.tar.gz
post_build_actions:
- tarball:
site: 'ci.openstack.org'
project: 'gerritbot'
scm:
scm: 'false'
assignednode:
node: 'precise'
---
# pypi-upload
main:
name: 'gerritbot-pypi'
review_site: 'review.openstack.org'
github_org: 'openstack-ci'
project: 'gerritbot'
concurrent: 'true'
timeout: 20
timeout_fail: true
triggers:
- zuul_post
builders:
- gerrit_git_prep
- shell: tox -v -evenv python setup.py sdist upload
post_build_actions:
- tarball:
site: 'ci.openstack.org'
project: 'gerritbot'
scm:
scm: 'false'
assignednode:
node: 'pypi'

View File

@ -106,6 +106,10 @@ projects:
- gate-gerritbot-merge:
- gate-gerritbot-pep8
- gate-gerritbot-pyflakes
post:
- gerritbot-tarball
publish:
- gerritbot-pypi
- name: openstack-ci/gerritlib
check: