
This patch adds in a tekton zuul job and fixes/adjusts the existing linting and building, which currently does not perform the advertised checks. This is the final patch of the chain of patches in order: 0. https://review.opendev.org/#/c/759865/ : tekton-pipelines 1. https://review.opendev.org/#/c/759598/ : tekton-triggers 2. https://review.opendev.org/#/c/759764/ : tektnon-dashboard Change-Id: Ie7bd9efd42fd13fe8e5e83f290f72ed00ba9dea1 Signed-off-by: Tin Lam <tin@irrational.io>
29 lines
599 B
YAML
29 lines
599 B
YAML
---
|
|
- name: Create directories for logs
|
|
file:
|
|
path: "{{ logs_dir }}/{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- objects/cluster
|
|
- objects/namespaced
|
|
- pod-logs
|
|
|
|
- name: Gather kubernetes logs
|
|
shell: |
|
|
set -xe;
|
|
./tools/gate/gather-pod-logs.sh
|
|
./tools/gate/gather-objects.sh
|
|
environment:
|
|
LOGDIR: "{{ logs_dir }}"
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
- name: Upload the logs
|
|
synchronize:
|
|
mode: pull
|
|
src: "{{ logs_dir }}"
|
|
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
|
owner: no
|
|
group: no
|
|
ignore_errors: True
|