Browse Source

Install yarn before building python artifacts

We need it installed so that the javascript gets built.

Change-Id: I909ea8af5cc11e6109f6258e2294ef7593d06881
changes/66/676466/5
Monty Taylor 2 years ago
parent
commit
8d395533e2
3 changed files with 26 additions and 3 deletions
  1. +17
    -3
      .zuul.yaml
  2. +5
    -0
      playbooks/release/pre.yaml
  3. +4
    -0
      releasenotes/notes/fix-missing-yarn-files-a9e0f8b0c78def39.yaml

+ 17
- 3
.zuul.yaml View File

@ -162,6 +162,20 @@
nodes: []
vars: *zuul_image_vars
- job:
name: zuul-build-python-release
parent: build-python-release
pre-run: playbooks/release/pre.yaml
vars: &zuul_build_vars
node_version: 10
release_python: python3
- job:
name: zuul-release-python
parent: opendev-release-python
pre-run: playbooks/release/pre.yaml
vars: *zuul_build_vars
- project:
check:
jobs:
@ -202,7 +216,7 @@
dependencies: zuul-build-image
- nodepool-zuul-functional:
voting: false
- build-python-release
- zuul-build-python-release
- build-javascript-content-tarball:
vars:
node_version: 10
@ -244,7 +258,7 @@
timeout: 2700 # 45 minutes
- zuul-quick-start:
dependencies: zuul-upload-image
- build-python-release
- zuul-build-python-release
- build-javascript-content-tarball:
vars:
node_version: 10
@ -258,5 +272,5 @@
- opendev-promote-javascript-content
release:
jobs:
- opendev-release-python
- zuul-release-python
- zuul-publish-tox-docs

+ 5
- 0
playbooks/release/pre.yaml View File

@ -0,0 +1,5 @@
- hosts: all
roles:
- install-nodejs
- role: install-yarn
yarn_lock_file_path: "{{ zuul.project.src_dir }}/web/yarn.lock"

+ 4
- 0
releasenotes/notes/fix-missing-yarn-files-a9e0f8b0c78def39.yaml View File

@ -0,0 +1,4 @@
---
fixes:
- |
Fixed Zuul dashboard not loading properly due to javascript dependencies missing.

Loading…
Cancel
Save