Add release-announce job and publish-to-pypi template

This one is refreshingly easy.

We also have all the jobs needed now, so add a project-template
that matches the v2 publish-to-pypi template.

Depends-On: I901331a6b2dd7d269d5e356e76674ef9635924b5
Change-Id: Id9e346aefd6e783a184f3a4bb5d4b256a7448799
This commit is contained in:
Monty Taylor 2017-08-28 18:41:28 -05:00
parent b13fd7d7a0
commit cf1adb66a0
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,6 @@
- hosts: all
tasks:
- name: Send release announcement
command: >
src/git.openstack.org/openstack-infra/release-tools/announce.sh
src/{{ zuul.project.canonical_name }} {{ zuul.tag }}

View File

@ -0,0 +1,15 @@
- hosts: all
roles:
- role: bindep
bindep_profile: test
bindep_dir: "src/{{ zuul.project.canonical_name }}"
# TODO(mordred) When we have site-local variables, these should go there
bindep_command: /usr/bindep-env/bin/bindep
bindep_fallback: /usr/local/jenkins/common_data/bindep-fallback.txt
- role: bindep
bindep_profile: test
bindep_dir: src/git.openstack.org/openstack-infra/release-tools
# TODO(mordred) When we have site-local variables, these should go there
bindep_command: /usr/bindep-env/bin/bindep
bindep_fallback: /usr/local/jenkins/common_data/bindep-fallback.txt
- revoke-sudo

View File

@ -44,6 +44,36 @@
pre-run: playbooks/python-tarball/pre
run: playbooks/python-tarball/run
- job:
name: announce-release
description:
Send a release announcement after publishing a project
pre-run: playbooks/release/pre
run: playbooks/release/announce
required-projects:
- openstack-infra/release-tools
- project-template:
name: publish-to-pypi
pre-release:
jobs:
- publish-openstack-python-tarball
- announce-release:
dependencies:
- publish-openstack-python-tarball
- propose-update-constraints:
dependencies:
- publish-openstack-python-tarball
release:
jobs:
- publish-openstack-python-tarball
- announce-release:
dependencies:
- publish-openstack-python-tarball
- propose-update-constraints:
dependencies:
- publish-openstack-python-tarball
- project:
name: openstack-infra/openstack-zuul-jobs
check: