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:
parent
d3e5dffa48
commit
373f45f844
@ -89,3 +89,73 @@ scm:
|
|||||||
|
|
||||||
assignednode:
|
assignednode:
|
||||||
node: 'precise'
|
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'
|
||||||
|
@ -106,6 +106,10 @@ projects:
|
|||||||
- gate-gerritbot-merge:
|
- gate-gerritbot-merge:
|
||||||
- gate-gerritbot-pep8
|
- gate-gerritbot-pep8
|
||||||
- gate-gerritbot-pyflakes
|
- gate-gerritbot-pyflakes
|
||||||
|
post:
|
||||||
|
- gerritbot-tarball
|
||||||
|
publish:
|
||||||
|
- gerritbot-pypi
|
||||||
|
|
||||||
- name: openstack-ci/gerritlib
|
- name: openstack-ci/gerritlib
|
||||||
check:
|
check:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user