CI: copy bifrost logs to the log directory
Using them is more convenient than scrolling the whole output, especially in case of upgrades. Change-Id: Ib086f106a0e78d247bac5fa63801c2fecb40efa8
This commit is contained in:
parent
ffaf7a3baa
commit
7e1dbbd0de
@ -1,7 +1,7 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- shell:
|
||||
cmd: bash scripts/test-bifrost.sh
|
||||
cmd: bash scripts/test-bifrost.sh 2>&1 | tee "{{ ansible_user_dir }}/bifrost.log"
|
||||
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
|
||||
environment:
|
||||
BIFROST_TRACE: "true"
|
||||
|
@ -5,7 +5,7 @@
|
||||
chdir: "{{ ansible_user_dir }}/{{ item.src_dir }}"
|
||||
loop: "{{ zuul.projects.values() | list }}"
|
||||
when: item.name not in skip_upgrade
|
||||
- command: bash scripts/test-bifrost.sh
|
||||
- shell: bash scripts/test-bifrost.sh 2>&1 | tee "{{ ansible_user_dir }}/bifrost-old.log"
|
||||
args:
|
||||
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
|
||||
environment:
|
||||
@ -20,7 +20,7 @@
|
||||
chdir: "{{ ansible_user_dir }}/{{ item.src_dir }}"
|
||||
loop: "{{ zuul.projects.values() | list }}"
|
||||
when: item.name not in skip_upgrade
|
||||
- command: bash scripts/test-bifrost.sh
|
||||
- shell: bash scripts/test-bifrost.sh 2>&1 | tee "{{ ansible_user_dir }}/bifrost-new.log"
|
||||
args:
|
||||
chdir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/bifrost'].src_dir }}"
|
||||
environment:
|
||||
|
@ -14,6 +14,8 @@ VERBOSE_LOGS="${VERBOSE_LOGS:-False}"
|
||||
echo "Making logs directory and collecting logs."
|
||||
[ -d ${LOG_LOCATION} ] || mkdir -p ${LOG_LOCATION}
|
||||
|
||||
cp ${LOG_LOCATION}/../bifrost*.log ${LOG_LOCATION}
|
||||
|
||||
mkdir -p "$LOG_LOCATION/pip"
|
||||
pip freeze > "$LOG_LOCATION/pip/freeze-default.log"
|
||||
if which pip3 2> /dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user