Merge "CI: Add chart build job for latest Helm toolkit"

This commit is contained in:
Zuul 2019-04-17 16:12:59 +00:00 committed by Gerrit Code Review
commit 928cddad00
2 changed files with 19 additions and 9 deletions

View File

@ -14,12 +14,13 @@
check: check:
jobs: jobs:
- airship-maas-lint-ws - airship-maas-lint-ws
- airship-maas-lint-chart - airship-maas-chart-build-gate
- airship-maas-chart-build-latest-htk
- airship-maas-docker-build-gate - airship-maas-docker-build-gate
gate: gate:
jobs: jobs:
- airship-maas-lint-ws - airship-maas-lint-ws
- airship-maas-lint-chart - airship-maas-chart-build-gate
- airship-maas-docker-build-gate - airship-maas-docker-build-gate
post: post:
jobs: jobs:
@ -40,15 +41,22 @@
nodeset: airship-maas-single-node nodeset: airship-maas-single-node
- job: - job:
name: airship-maas-lint-chart name: airship-maas-chart-build-gate
files: description: Build charts using pinned Helm toolkit.
- ^charts/.*$
description: |
Lints Helm charts for validity
run: tools/gate/playbooks/helm-linter.yaml run: tools/gate/playbooks/helm-linter.yaml
timeout: 600 timeout: 600
nodeset: airship-maas-single-node nodeset: airship-maas-single-node
- job:
name: airship-maas-chart-build-latest-htk
description: Build charts using latest Helm toolkit.
voting: false
run: tools/gate/playbooks/helm-linter.yaml
timeout: 600
nodeset: airship-maas-single-node
vars:
HTK_COMMIT: master
- job: - job:
name: airship-maas-docker-build-gate name: airship-maas-docker-build-gate
timeout: 1800 timeout: 1800

View File

@ -13,9 +13,11 @@
- hosts: primary - hosts: primary
tasks: tasks:
- name: Execute the make target for Helm chart linting - name: Execute the make target to package Helm charts.
make: make:
chdir: "{{ zuul.project.src_dir }}" chdir: "{{ zuul.project.src_dir }}"
target: helm_lint target: charts
params:
HTK_COMMIT: "{{ HTK_COMMIT | default('') }}"
register: result register: result
failed_when: result.failed failed_when: result.failed