Add .gitreview and basic Zuul job
Change-Id: I9637e20984b64297e5c7306ffe031d618f0c260f
This commit is contained in:
parent
c99e5d201e
commit
db33049bd5
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.opendev.org
|
||||||
|
port=29418
|
||||||
|
project=opendev/dstat_graph.git
|
13
.zuul.yaml
Normal file
13
.zuul.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
- job:
|
||||||
|
name: dstat_graph-generate-graph
|
||||||
|
description: |
|
||||||
|
Test dstat_graph generation
|
||||||
|
run: playbooks/test.yaml
|
||||||
|
|
||||||
|
- project:
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- dstat_graph-generate-graph
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- dstat_graph-generate-graph
|
24
playbooks/test.yaml
Normal file
24
playbooks/test.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Run build
|
||||||
|
shell: |
|
||||||
|
./generate_page.sh sample.csv > dstat_graph.html
|
||||||
|
args:
|
||||||
|
chdir: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}'
|
||||||
|
|
||||||
|
- name: Copy to executor
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/dstat_graph.html'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
|
||||||
|
- name: Return artifact to Zuul
|
||||||
|
zuul_return:
|
||||||
|
data:
|
||||||
|
zuul:
|
||||||
|
artifacts:
|
||||||
|
- name: 'Sample dstat graphs'
|
||||||
|
url: 'dstat_graph.html'
|
||||||
|
metadata:
|
||||||
|
type: text/html
|
Loading…
Reference in New Issue
Block a user