Save registry logs

In the buildset registry job, save the logs from the registry
service to aid in debugging.

Change-Id: I227a0eb0cfc3cfc7621f5c06da9cb552c0a82750
This commit is contained in:
James E. Blair 2019-02-22 16:10:23 -08:00
parent 4521eee742
commit f49bf96c32
1 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,16 @@
- hosts: localhost
roles:
- push-to-intermediate-registry
tasks:
- name: Create container log dir
file:
path: "{{ ansible_user_dir }}/zuul-output/logs/docker"
state: directory
- name: Save registry container logs
loop:
- buildset_proxy
- buildset_registry
shell: "docker logs {{ item }} &> {{ ansible_user_dir }}/zuul-output/logs/docker/{{item}}.txt"
args:
executable: /bin/bash