Browse Source

Fix collect/upload logs for CoreOS

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
pull/620/head
Bogdan Dobrelya 8 years ago
parent
commit
952191db99
3 changed files with 3 additions and 4 deletions
  1. 1
      .travis.yml
  2. 2
      scripts/collect-info.yaml
  3. 4
      tests/cloud_playbooks/upload-logs-gcs.yml

1
.travis.yml

@ -176,7 +176,6 @@ after_failure:
-e ostype=${CLOUD_IMAGE}
-e commit=${TRAVIS_COMMIT}
-e dir=${HOME}
-e ansible_python_interpreter=${PYPATH}
after_script:
- >

2
scripts/collect-info.yaml

@ -86,7 +86,7 @@
with_items: "{{logs}}"
- name: Pack results and logs
local_action: shell GZIP=-9 tar --remove-files -cvzf {{dir|default(".")}}/logs.tar.gz -C /tmp collect-info
local_action: raw GZIP=-9 tar --remove-files -cvzf {{dir|default(".")}}/logs.tar.gz -C /tmp collect-info
run_once: true
- name: Clean up collected command outputs

4
tests/cloud_playbooks/upload-logs-gcs.yml

@ -8,12 +8,12 @@
tasks:
- name: Generate uniq bucket name prefix
shell: date +%Y%m%d
raw: date +%Y%m%d
register: out
- name: replace_test_id
set_fact:
test_name: "kargo-ci-{{ out.stdout }}"
test_name: "kargo-ci-{{ out.stdout_lines[0] }}"
- set_fact:
file_name: "{{ostype}}-{{kube_network_plugin}}-{{commit}}-logs.tar.gz"

Loading…
Cancel
Save