Merge "Add cleanup playbook to all base jobs"
This commit is contained in:
commit
0345e0e68a
16
playbooks/base-minimal/cleanup.yaml
Normal file
16
playbooks/base-minimal/cleanup.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Gather debug info on job fail
|
||||||
|
when: not (zuul_success | bool)
|
||||||
|
block:
|
||||||
|
- name: get df disk usage
|
||||||
|
raw: df
|
||||||
|
|
||||||
|
- name: get df inode usage
|
||||||
|
raw: df -i
|
||||||
|
|
||||||
|
- name: get l2 networking
|
||||||
|
raw: ip link
|
||||||
|
|
||||||
|
- name: get l3 networking
|
||||||
|
raw: ip addr
|
16
playbooks/base/cleanup.yaml
Normal file
16
playbooks/base/cleanup.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Gather debug info on job fail
|
||||||
|
when: not (zuul_success | bool)
|
||||||
|
block:
|
||||||
|
- name: get df disk usage
|
||||||
|
raw: df
|
||||||
|
|
||||||
|
- name: get df inode usage
|
||||||
|
raw: df -i
|
||||||
|
|
||||||
|
- name: get l2 networking
|
||||||
|
raw: ip link
|
||||||
|
|
||||||
|
- name: get l3 networking
|
||||||
|
raw: ip addr
|
@ -53,6 +53,7 @@
|
|||||||
post-run:
|
post-run:
|
||||||
- playbooks/base/post.yaml
|
- playbooks/base/post.yaml
|
||||||
- playbooks/base/post-logs.yaml
|
- playbooks/base/post-logs.yaml
|
||||||
|
cleanup-run: playbooks/base/cleanup.yaml
|
||||||
roles:
|
roles:
|
||||||
- zuul: zuul/zuul-jobs
|
- zuul: zuul/zuul-jobs
|
||||||
timeout: 1800
|
timeout: 1800
|
||||||
@ -81,10 +82,10 @@
|
|||||||
A job to test changes to the base job without disturbing the
|
A job to test changes to the base job without disturbing the
|
||||||
main job in production. Not for general use.
|
main job in production. Not for general use.
|
||||||
pre-run: playbooks/base-test/pre.yaml
|
pre-run: playbooks/base-test/pre.yaml
|
||||||
cleanup-run: playbooks/base-test/cleanup.yaml
|
|
||||||
post-run:
|
post-run:
|
||||||
- playbooks/base-test/post.yaml
|
- playbooks/base-test/post.yaml
|
||||||
- playbooks/base-test/post-logs.yaml
|
- playbooks/base-test/post-logs.yaml
|
||||||
|
cleanup-run: playbooks/base-test/cleanup.yaml
|
||||||
roles:
|
roles:
|
||||||
- zuul: zuul/zuul-jobs
|
- zuul: zuul/zuul-jobs
|
||||||
timeout: 1800
|
timeout: 1800
|
||||||
@ -110,6 +111,7 @@
|
|||||||
post-run:
|
post-run:
|
||||||
- playbooks/base-minimal/post.yaml
|
- playbooks/base-minimal/post.yaml
|
||||||
- playbooks/base-minimal/post-logs.yaml
|
- playbooks/base-minimal/post-logs.yaml
|
||||||
|
cleanup-run: playbooks/base-minimal/cleanup.yaml
|
||||||
roles:
|
roles:
|
||||||
- zuul: zuul/zuul-jobs
|
- zuul: zuul/zuul-jobs
|
||||||
timeout: 1800
|
timeout: 1800
|
||||||
|
Loading…
x
Reference in New Issue
Block a user