From a0cf998b39d0d111485088a8be88402ed1d454da Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 26 Feb 2020 17:03:19 +0100 Subject: [PATCH] Add publish job for stackviz stackviz gets published daily to: https://tarballs.opendev.org/openstack/stackviz/dist/stackviz-latest.tar.gz The current job periodic-package-stackviz-element is a legacy job, create a new job publish-openstack-javascript-latest-content that can be run instead. The stackviz-element is backed into our images and thus we have to be extra careful not to break it and test. The new job is publishing temporarily under a different filename to check that it's working correctly. Order of changes: * Merge this change, so we run both periodic-package-stackviz-element and publish-openstack-javascript-latest-content in stackviz. * Change new job to publish under correct name and remove setup in project-config. * Switch to new job in stackviz repo. Change-Id: I81ac0975f03756da673ae12e7e11cd5686a0f2d6 --- playbooks/javascript/rename-latest.yaml | 13 +++++++++++++ zuul.d/jobs.yaml | 14 ++++++++++++++ zuul.d/projects.yaml | 9 +++++++++ 3 files changed, 36 insertions(+) create mode 100644 playbooks/javascript/rename-latest.yaml diff --git a/playbooks/javascript/rename-latest.yaml b/playbooks/javascript/rename-latest.yaml new file mode 100644 index 0000000000..77bfbec154 --- /dev/null +++ b/playbooks/javascript/rename-latest.yaml @@ -0,0 +1,13 @@ +- hosts: all + tasks: + - name: Rename tarball and move it to a subdir named dist as well + # TODO(AJaeger): "-new" is for testing + shell: | + mkdir dist + mv {{ zuul.project-short_name }}*.tar.gz dist/{{ zuul.project-short_name }}-latest-new.tar.gz + args: + executable: /bin/bash + chdir: "{{ zuul.project.src_dir }}/dist" + # 302 mkdir used in place of argument state=directory to file module + tags: + - skip_ansible_lint diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 99c065325b..d568e240c8 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -784,6 +784,20 @@ run: playbooks/javascript/content.yaml post-run: playbooks/javascript/publish.yaml +- job: + name: publish-openstack-javascript-latest-content + parent: publish-openstack-javascript-content + description: | + Publish javascript content tarballs to tarballs.opendev.org. + + Content tarballs contain the built javascript/css/html artifacts. They + are different from source tarballs, which are handled by the + publish-openstack-javascript-tarball job. + + 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 + - job: name: release-openstack-javascript parent: publish-openstack-artifacts diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index baec34e219..ce40947278 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -4082,6 +4082,15 @@ templates: - publish-to-pypi +- project: + name: openstack/stackviz + periodic: + jobs: + - publish-openstack-javascript-latest-content: + vars: + node_version: 8 + branches: master + - project: name: openstack/stevedore templates: