Add javascript tarball publication job
Build source tarballs for javascript projects and publish them to the per-project location on tarballs.openstack.org. Change-Id: Ie04995f6bd6be260bd1240f273b8dc6efb5e9188 Depends-On: I20b4b4ce0bdf03c5585ca73471611178c94e2599 Depends-On: Ib361ee2880be77eff3ef905726b032777d0b807a
This commit is contained in:
parent
b02ee914a0
commit
28082cfa7f
4
playbooks/javascript/post-tarball.yaml
Normal file
4
playbooks/javascript/post-tarball.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- version-from-git
|
||||
- fetch-javascript-tarball
|
3
playbooks/javascript/post.yaml
Normal file
3
playbooks/javascript/post.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- fetch-javascript-output
|
9
playbooks/javascript/pre.yaml
Normal file
9
playbooks/javascript/pre.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: bindep
|
||||
bindep_profile: test
|
||||
bindep_dir: "{{ zuul_work_dir }}"
|
||||
- test-setup
|
||||
- install-nodejs
|
||||
- revoke-sudo
|
||||
- install-javascript-packages
|
4
playbooks/javascript/tarball.yaml
Normal file
4
playbooks/javascript/tarball.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: npm
|
||||
npm_command: pack
|
@ -351,6 +351,29 @@
|
||||
pre-run: playbooks/python-tarball/pre
|
||||
run: playbooks/python-tarball/run
|
||||
|
||||
- job:
|
||||
name: publish-openstack-javascript-tarball
|
||||
parent: publish-openstack-artifacts
|
||||
description: |
|
||||
Build and publish source tarball for a Javascript project.
|
||||
|
||||
Responds to these variables:
|
||||
|
||||
.. zuul:jobvar:: node_version
|
||||
:default: 6
|
||||
|
||||
The version of Node to use.
|
||||
|
||||
.. zuul:jobvar: zuul_work_dir
|
||||
:default: {{ zuul.project.src_dir }}
|
||||
|
||||
Path to operate in.
|
||||
pre-run: playbooks/javascript/pre
|
||||
run: playbooks/javascript/tarball
|
||||
post-run:
|
||||
- playbooks/javascript/post
|
||||
- playbooks/javascript/post-tarball
|
||||
|
||||
- job:
|
||||
name: announce-release
|
||||
description:
|
||||
|
@ -399,3 +399,33 @@
|
||||
release:
|
||||
jobs:
|
||||
- trigger-readthedocs
|
||||
|
||||
- project-template:
|
||||
name: nodejs4-publish-to-npm
|
||||
release:
|
||||
jobs:
|
||||
- publish-openstack-javascript-tarball:
|
||||
vars:
|
||||
node_version: 4
|
||||
- release-openstack-javascript:
|
||||
vars:
|
||||
node_version: 4
|
||||
- announce-release:
|
||||
dependencies:
|
||||
- release-openstack-javascript
|
||||
- publish-openstack-javascript-tarball
|
||||
|
||||
- project-template:
|
||||
name: nodejs6-publish-to-npm
|
||||
release:
|
||||
jobs:
|
||||
- publish-openstack-javascript-tarball:
|
||||
vars:
|
||||
node_version: 6
|
||||
- release-openstack-javascript:
|
||||
vars:
|
||||
node_version: 6
|
||||
- announce-release:
|
||||
dependencies:
|
||||
- release-openstack-javascript
|
||||
- publish-openstack-javascript-tarball
|
||||
|
@ -976,21 +976,6 @@
|
||||
- legacy-nodejs4-npm-run-lint
|
||||
- legacy-nodejs4-npm-run-test
|
||||
|
||||
- project-template:
|
||||
name: nodejs4-publish-to-npm
|
||||
release:
|
||||
jobs:
|
||||
- publish-openstack-python-tarball:
|
||||
dependencies:
|
||||
- publish-openstack-python-tarball
|
||||
- announce-release:
|
||||
dependencies:
|
||||
- legacy-npm-upload
|
||||
- legacy-npm-upload:
|
||||
dependencies:
|
||||
- publish-openstack-python-tarball
|
||||
- publish-openstack-python-tarball
|
||||
|
||||
- project-template:
|
||||
name: nodejs6-docs
|
||||
check:
|
||||
@ -1007,21 +992,6 @@
|
||||
- legacy-nodejs6-npm-run-lint
|
||||
- legacy-nodejs6-npm-run-test
|
||||
|
||||
- project-template:
|
||||
name: nodejs6-publish-to-npm
|
||||
release:
|
||||
jobs:
|
||||
- publish-openstack-python-tarball:
|
||||
dependencies:
|
||||
- publish-openstack-python-tarball
|
||||
- announce-release:
|
||||
dependencies:
|
||||
- legacy-npm-upload
|
||||
- legacy-npm-upload:
|
||||
dependencies:
|
||||
- publish-openstack-python-tarball
|
||||
- publish-openstack-python-tarball
|
||||
|
||||
- project-template:
|
||||
name: noop-jobs
|
||||
check:
|
||||
|
Loading…
Reference in New Issue
Block a user