Change the name of the pypi tarball job.

The pypi_jobs template defines a -tarball job which is different
than the -tarball job in python_jobs template.  That's confusing,
and not supported by the version of job-builder in development.

This changes the name of that job, updates the zuul layout, and
removes the "upload" from the sdist command in the tarball job,
which wasn't working anyway (and isn't wanted).

This alse enables the reddwarf jobs, which are configured in zuul.

Also, there's a hackish change to test.sh and the test output
to write out xml files in a way that's compatible with the
version of job-builder in development, so that they may be
directly compared.  The new version will not implement that
in quite such a hackish way.

Change-Id: Ice3f03b41e44e2979942f516febd059f4ab4cefa
Reviewed-on: https://review.openstack.org/11108
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-08-09 14:45:15 -07:00 committed by Jenkins
parent 5ec9629e56
commit 42dc2ac848
6 changed files with 18 additions and 16 deletions

View File

@ -257,7 +257,9 @@ def update_job(test = False):
xml = yparse.get_next_xml() xml = yparse.get_next_xml()
job = yparse.get_name() job = yparse.get_name()
if test: if test:
print xml.output() f = open('/tmp/jenkins_jobs_test/saved/%s' % job,
'w')
f.write(xml.output())
continue continue
md5 = xml.md5() md5 = xml.md5()
if remote_jenkins.is_job(job) and not cache.is_cached(job): if remote_jenkins.is_job(job) and not cache.is_cached(job):

View File

@ -96,7 +96,7 @@ assignednode:
--- ---
# tarball # tarball
main: main:
name: 'gerritbot-tarball' name: 'gerritbot-sdist-tarball'
review_site: 'review.openstack.org' review_site: 'review.openstack.org'
github_org: 'openstack-ci' github_org: 'openstack-ci'
project: 'gerritbot' project: 'gerritbot'
@ -120,7 +120,7 @@ builders:
BRANCH=$GERRIT_REFNAME BRANCH=$GERRIT_REFNAME
BRANCH_PATH=`echo $BRANCH | tr / -` BRANCH_PATH=`echo $BRANCH | tr / -`
tox -v -evenv python setup.py sdist upload tox -v -evenv python setup.py sdist
cp dist/* dist/gerritbot-$BRANCH_PATH.tar.gz cp dist/* dist/gerritbot-$BRANCH_PATH.tar.gz
post_build_actions: post_build_actions:

View File

@ -3,7 +3,7 @@ project:
values: values:
name: 'reddwarf' name: 'reddwarf'
disabled: 'true' disabled: 'false'
github_org: 'stackforge' github_org: 'stackforge'
review_site: 'review.openstack.org' review_site: 'review.openstack.org'
node: 'oneiric' node: 'oneiric'

View File

@ -42,7 +42,7 @@ assignednode:
--- ---
# tarball # tarball
main: main:
name: '@NAME@-tarball' name: '@NAME@-sdist-tarball'
review_site: '@REVIEW_SITE@' review_site: '@REVIEW_SITE@'
github_org: '@GITHUB_ORG@' github_org: '@GITHUB_ORG@'
project: '@NAME@' project: '@NAME@'
@ -69,7 +69,7 @@ builders:
BRANCH=$GERRIT_REFNAME BRANCH=$GERRIT_REFNAME
BRANCH_PATH=`echo $BRANCH | tr / -` BRANCH_PATH=`echo $BRANCH | tr / -`
tox -v -evenv python setup.py sdist upload tox -v -evenv python setup.py sdist
cp dist/* dist/@NAME@-$BRANCH_PATH.tar.gz cp dist/* dist/@NAME@-$BRANCH_PATH.tar.gz
post_build_actions: post_build_actions:

View File

@ -13,7 +13,7 @@ then
do do
echo $x echo $x
BASENAME=`basename $x` BASENAME=`basename $x`
python jenkins_jobs.py test $x > /tmp/jenkins_jobs_test/saved/$BASENAME.xml python jenkins_jobs.py test $x #> /tmp/jenkins_jobs_test/saved/$BASENAME.xml
done done
else else
for x in `find projects/ -name *.yml` for x in `find projects/ -name *.yml`

View File

@ -107,7 +107,7 @@ projects:
- gate-gerritbot-pep8 - gate-gerritbot-pep8
- gate-gerritbot-pyflakes - gate-gerritbot-pyflakes
post: post:
- gerritbot-tarball - gerritbot-sdist-tarball
publish: publish:
- gerritbot-pypi - gerritbot-pypi
@ -323,7 +323,7 @@ projects:
- gate-python-cinderclient-python26 - gate-python-cinderclient-python26
- gate-python-cinderclient-python27 - gate-python-cinderclient-python27
post: post:
- python-cinderclient-tarball - python-cinderclient-sdist-tarball
- python-cinderclient-coverage - python-cinderclient-coverage
- python-cinderclient-docs - python-cinderclient-docs
publish: publish:
@ -346,7 +346,7 @@ projects:
- gate-python-glanceclient-python27 - gate-python-glanceclient-python27
- gate-tempest-devstack-vm - gate-tempest-devstack-vm
post: post:
- python-glanceclient-tarball - python-glanceclient-sdist-tarball
- python-glanceclient-coverage - python-glanceclient-coverage
- python-glanceclient-docs - python-glanceclient-docs
publish: publish:
@ -369,7 +369,7 @@ projects:
- gate-python-keystoneclient-python27 - gate-python-keystoneclient-python27
- gate-tempest-devstack-vm - gate-tempest-devstack-vm
post: post:
- python-keystoneclient-tarball - python-keystoneclient-sdist-tarball
- python-keystoneclient-coverage - python-keystoneclient-coverage
- python-keystoneclient-docs - python-keystoneclient-docs
publish: publish:
@ -392,7 +392,7 @@ projects:
- gate-python-novaclient-python27 - gate-python-novaclient-python27
- gate-tempest-devstack-vm - gate-tempest-devstack-vm
post: post:
- python-novaclient-tarball - python-novaclient-sdist-tarball
- python-novaclient-coverage - python-novaclient-coverage
- python-novaclient-docs - python-novaclient-docs
publish: publish:
@ -413,7 +413,7 @@ projects:
- gate-python-openstackclient-python26 - gate-python-openstackclient-python26
- gate-python-openstackclient-python27 - gate-python-openstackclient-python27
post: post:
- python-openstackclient-tarball - python-openstackclient-sdist-tarball
- python-openstackclient-coverage - python-openstackclient-coverage
- python-openstackclient-docs - python-openstackclient-docs
publish: publish:
@ -436,7 +436,7 @@ projects:
- gate-python-quantumclient-python27 - gate-python-quantumclient-python27
- gate-tempest-devstack-vm - gate-tempest-devstack-vm
post: post:
- python-quantumclient-tarball - python-quantumclient-sdist-tarball
- python-quantumclient-coverage - python-quantumclient-coverage
- python-quantumclient-docs - python-quantumclient-docs
publish: publish:
@ -457,7 +457,7 @@ projects:
- gate-python-swiftclient-python26 - gate-python-swiftclient-python26
- gate-python-swiftclient-python27 - gate-python-swiftclient-python27
post: post:
- python-swiftclient-tarball - python-swiftclient-sdist-tarball
- python-swiftclient-coverage - python-swiftclient-coverage
- python-swiftclient-docs - python-swiftclient-docs
publish: publish:
@ -500,7 +500,7 @@ projects:
- gate-pbr-python26 - gate-pbr-python26
- gate-pbr-python27 - gate-pbr-python27
post: post:
- pbr-tarball - pbr-sdist-tarball
- pbr-coverage - pbr-coverage
- pbr-docs - pbr-docs
publish: publish: