Include xstatic-publish-jobs as one of the valid publish jobs
xstatic packages have an alternate publish job due that verifies the xstatic metadata matches the git tag. Inlude that as a valid open. Change-Id: I60225bdb2ced5b197ce4a3f3fa3b4f1a064b665f
This commit is contained in:
parent
a6ccc345f3
commit
c54450bcd3
@ -80,20 +80,22 @@ def require_release_jobs_for_repo(deliverable_info, zuul_layout, repo):
|
||||
# jobs, because we want projects to use the templates.
|
||||
num_release_jobs = sum(('openstack-server-release-jobs' in templates,
|
||||
'publish-to-pypi' in templates,
|
||||
'xstatic-publish-jobs' in templates,
|
||||
'puppet-tarball-jobs' in templates))
|
||||
if num_release_jobs == 0:
|
||||
errors.append(
|
||||
('%s no release job specified, '
|
||||
'should be one of openstack-server-release-jobs, '
|
||||
'publish-to-pypi or puppet-tarball-jobs for %s '
|
||||
'or no release will be published'
|
||||
% (ZUUL_LAYOUT_FILENAME, repo), True)
|
||||
'publish-to-pypi, xstatic-publish-jobs '
|
||||
'or puppet-tarball-jobs for %s or no release will be '
|
||||
'published' % (ZUUL_LAYOUT_FILENAME, repo), True)
|
||||
)
|
||||
elif num_release_jobs > 1:
|
||||
errors.append(
|
||||
('%s multiple release jobs specified, '
|
||||
'should be *one* of openstack-server-release-jobs, '
|
||||
'publish-to-pypi or puppet-tarball-jobs for %s '
|
||||
'publish-to-pypi, xstatic-publish-jobs or '
|
||||
'puppet-tarball-jobs for %s '
|
||||
% (ZUUL_LAYOUT_FILENAME, repo), False)
|
||||
)
|
||||
return errors
|
||||
|
Loading…
Reference in New Issue
Block a user