Add release-zuul-python job that deals with javascript
The zuul releases need to build javascript when making artifacts. We also don't want to use the openstack project-template for zuul and nodepool. Add a new job and remove the release template from project-config. We'll add release-zuul-python from zuul and nodepool .zuul.yaml files. Change-Id: Ic999040ce21e867b2c9279cc3a445fba13a2730f
This commit is contained in:
parent
416a02640c
commit
643c176982
7
playbooks/zuul-tarball/post.yaml
Normal file
7
playbooks/zuul-tarball/post.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- fetch-python-sdist-output
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- sign-artifacts
|
6
playbooks/zuul-tarball/pre.yaml
Normal file
6
playbooks/zuul-tarball/pre.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- bindep
|
||||
- install-nodejs
|
||||
- install-yarn
|
||||
- revoke-sudo
|
6
playbooks/zuul-tarball/run.yaml
Normal file
6
playbooks/zuul-tarball/run.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Build tarball and wheel
|
||||
command:
|
||||
cmd: python setup.py sdist bdist_wheel
|
||||
chdir: '{{ zuul_work_dir }}'
|
@ -234,6 +234,21 @@
|
||||
# sdists.
|
||||
tox_constraints_file: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt'
|
||||
|
||||
- job:
|
||||
name: release-zuul-python
|
||||
parent: publish-openstack-artifacts
|
||||
description: |
|
||||
Release python tarballs / wheels to pypi for zuul projects.
|
||||
pre-run: playbooks/zuul-tarball/pre.yaml
|
||||
run: playbooks/zuul-tarball/run.yaml
|
||||
post-run:
|
||||
- playbooks/zuul-tarball/post.yaml
|
||||
- playbooks/publish/pypi.yaml
|
||||
secrets:
|
||||
- secret: pypi_secret
|
||||
name: pypi_info
|
||||
- gpg_key
|
||||
|
||||
- job:
|
||||
name: release-openstack-python3
|
||||
parent: publish-openstack-artifacts
|
||||
|
@ -483,8 +483,6 @@
|
||||
|
||||
- project:
|
||||
name: openstack-infra/nodepool
|
||||
templates:
|
||||
- publish-to-pypi
|
||||
experimental:
|
||||
jobs:
|
||||
- nodepool-functional-py35-redhat-src
|
||||
@ -1575,8 +1573,6 @@
|
||||
|
||||
- project:
|
||||
name: openstack-infra/zuul
|
||||
templates:
|
||||
- publish-to-pypi
|
||||
experimental:
|
||||
jobs:
|
||||
- nodepool-zuul-functional
|
||||
|
Loading…
Reference in New Issue
Block a user