Rework stackviz elements publishing
We cannot change the javascript-content job as desired, use specific post job to rename and fetch the tarball. Change-Id: I63872db707bd674ebfaa9bd49a1cdf3ae6906a60
This commit is contained in:
parent
0ed4d073c7
commit
41e5721d38
|
@ -1,5 +1,5 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
pre_tasks:
|
||||
- name: Rename tarball and move it to a subdir named dist as well
|
||||
# TODO(AJaeger): "-new" is for testing
|
||||
shell: |
|
||||
|
@ -11,3 +11,6 @@
|
|||
# 302 mkdir used in place of argument state=directory to file module
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
roles:
|
||||
- fetch-javascript-output
|
|
@ -789,8 +789,8 @@
|
|||
npm_command: build
|
||||
|
||||
- job:
|
||||
name: publish-openstack-javascript-latest-content
|
||||
parent: publish-openstack-javascript-content
|
||||
name: publish-openstack-stackviz-element
|
||||
parent: publish-openstack-artifacts
|
||||
description: |
|
||||
Publish javascript content tarballs to tarballs.opendev.org.
|
||||
|
||||
|
@ -800,7 +800,15 @@
|
|||
|
||||
This job publishes the tar ball as
|
||||
https://tarballs.opendev.org/{{ zuul.project.name }}/dist/{{ zuul.project.short_name }}-latest.tar.gz.
|
||||
post-run: playbooks/javascript/rename-latest.yaml
|
||||
This is specific to openstack/stackviz.
|
||||
allowed-projects:
|
||||
- openstack/stackviz
|
||||
pre-run: playbooks/javascript/pre.yaml
|
||||
run: playbooks/javascript/content.yaml
|
||||
post-run: playbooks/javascript/post-stackviz.yaml
|
||||
vars:
|
||||
node_version: 8
|
||||
npm_command: prod
|
||||
|
||||
- job:
|
||||
name: release-openstack-javascript
|
||||
|
|
|
@ -4080,10 +4080,7 @@
|
|||
name: openstack/stackviz
|
||||
periodic:
|
||||
jobs:
|
||||
- publish-openstack-javascript-latest-content:
|
||||
vars:
|
||||
node_version: 8
|
||||
npm_command: prod
|
||||
- publish-openstack-stackviz-element:
|
||||
branches: master
|
||||
|
||||
- project:
|
||||
|
|
Loading…
Reference in New Issue