CI: Add chart build jobs

This commit introduces a non-voting job to lint Helm charts against the
latest version of Helm toolkit from OpenStack-Helm Infra and a gate for
a pinned version of Helm toolkit.

Change-Id: Ia98209745641db011469d54220777110b2f6ae3a
This commit is contained in:
Drew Walters 2019-04-02 19:51:07 +00:00
parent b604af2411
commit efb82a5c74
2 changed files with 46 additions and 0 deletions

View File

@ -29,6 +29,8 @@
- airship-deckhand-integration-uwsgi-py35:
voting: false
- airship-deckhand-integration-docker-py35
- airship-deckhand-chart-build-gate
- airship-deckhand-chart-build-latest-htk
- airship-deckhand-docker-build-gate
gate:
jobs:
@ -36,6 +38,7 @@
- airship-deckhand-tox-py35-postgresql
- airship-deckhand-functional-docker-py35
- airship-deckhand-integration-docker-py35
- airship-deckhand-chart-build-gate
- airship-deckhand-docker-build-gate
post:
jobs:
@ -134,6 +137,25 @@
vars:
disable_keystone: true
- job:
name: airship-deckhand-chart-build-gate
description: |
Build charts using pinned Helm toolkit.
timeout: 900
run: tools/gate/playbooks/build-charts.yaml
nodeset: airship-deckhand-single-node
- job:
name: airship-deckhand-chart-build-latest-htk
description: |
Build charts using latest Helm toolkit.
voting: false
timeout: 900
run: tools/gate/playbooks/build-charts.yaml
nodeset: airship-deckhand-single-node
vars:
HTK_COMMIT: master
- job:
name: airship-deckhand-integration-docker-base
description: |

View File

@ -0,0 +1,24 @@
# Copyright 2019, AT&T Intellectual Property
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- hosts: primary
tasks:
- name: Execute the make target to package Helm charts.
make:
chdir: "{{ zuul.project.src_dir }}"
target: charts
params:
HTK_COMMIT: "{{ HTK_COMMIT | default('') }}"
register: result
failed_when: result.failed