gerritlib/playbooks/jeepyb-integration/post.yaml
Clark Boylan 2b81068c01 Add integration testing with jeepyb and gerrit
This adds integration testing to gerritlib with jeepyb and gerrit.

Depends-On: https://review.opendev.org/704660
Change-Id: I1815e63693656d52c10a9cb9bf60f999e036dfed
2020-01-28 11:01:01 -08:00

19 lines
613 B
YAML

- hosts: all
tasks:
- name: Create logs directory
file:
state: directory
path: "{{ ansible_user_dir }}/logs"
mode: 0755
- name: Save docker log files
become: true
shell: |
docker logs tools_gerrit_1 > {{ ansible_user_dir }}/logs/gerrit.log 2>&1
docker logs tools_gerritconfig_1 > {{ ansible_user_dir }}/logs/gerritconfig.log 2>&1
- name: Copy docker log files to executor
synchronize:
mode: pull
src: "{{ ansible_user_dir }}/logs/"
dest: "{{ zuul.executor.log_root }}/container_logs/"
verify_host: true