summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Walters <drewwalters96@gmail.com>2019-01-28 11:23:21 -0600
committerDrew Walters <drewwalters96@gmail.com>2019-01-28 11:24:02 -0600
commit5904c9938eb156e69a27e9bb3aa4724c1233f200 (patch)
tree7f40a4cbee6f579fb8bf9815f3c84dc4a738cb21
parentd93d6d5a0a370ced536180612d1ade708e29cd47 (diff)
CI: Add chart build gate
This commit introduces a chart build gate that triggers when changes are made to charts in the charts/ directory. Change-Id: I8c2c428302f3297109f37213b93c088321b13204
Notes
Notes (review): Code-Review+2: Bryan Strassner <strassner.bryan@gmail.com> Code-Review+1: Vladyslav Drok <vdrok@mirantis.com> Code-Review+2: Roman Gorshunov <roman.gorshunov@att.com> Workflow+1: Roman Gorshunov <roman.gorshunov@att.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 11 Feb 2019 18:24:40 +0000 Reviewed-on: https://review.openstack.org/633563 Project: openstack/airship-drydock Branch: refs/heads/master
-rw-r--r--.zuul.yaml10
-rw-r--r--tools/gate/playbooks/build-charts.yaml21
2 files changed, 31 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index bd87670..4e36ce9 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -14,11 +14,13 @@
14 check: 14 check:
15 jobs: 15 jobs:
16 - airship-drydock-omni-test 16 - airship-drydock-omni-test
17 - airship-drydock-chart-build-gate
17 - airship-drydock-docker-build-gate 18 - airship-drydock-docker-build-gate
18 19
19 gate: 20 gate:
20 jobs: 21 jobs:
21 - airship-drydock-omni-test 22 - airship-drydock-omni-test
23 - airship-drydock-chart-build-gate
22 - airship-drydock-docker-build-gate 24 - airship-drydock-docker-build-gate
23 25
24 post: 26 post:
@@ -42,6 +44,14 @@
42 nodeset: airship-drydock-single-node 44 nodeset: airship-drydock-single-node
43 45
44- job: 46- job:
47 name: airship-drydock-chart-build-gate
48 timeout: 900
49 run: tools/gate/playbooks/build-charts.yaml
50 nodeset: airship-drydock-single-node
51 files:
52 - ^charts/.*$
53
54- job:
45 name: airship-drydock-docker-build-gate 55 name: airship-drydock-docker-build-gate
46 timeout: 1800 56 timeout: 1800
47 run: tools/gate/playbooks/docker-image-build.yaml 57 run: tools/gate/playbooks/docker-image-build.yaml
diff --git a/tools/gate/playbooks/build-charts.yaml b/tools/gate/playbooks/build-charts.yaml
new file mode 100644
index 0000000..4e93360
--- /dev/null
+++ b/tools/gate/playbooks/build-charts.yaml
@@ -0,0 +1,21 @@
1# Copyright 2019, AT&T Intellectual Property
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15- hosts: primary
16 tasks:
17 - name: Build charts
18 shell: |
19 make charts
20 args:
21 chdir: "{{ zuul.project.src_dir }}"