Merge "Add timestamp to containers' build log"

This commit is contained in:
Zuul 2019-03-13 17:43:40 +00:00 committed by Gerrit Code Review
commit aa70b38199
2 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,7 @@
args:
chdir: '{{ workspace }}'
shell: |
set -x
set -o pipefail
source {{ workspace }}/venv/bin/activate
TRIPLEO_COMMON_PATH="{{ openstack_git_root }}/tripleo-common"
@ -79,7 +79,7 @@
{% if use_buildah is defined and use_buildah %}
--use-buildah \
{% endif %}
> {{ workspace }}/build.log 2> {{ workspace }}/build-err.log
2>&1 {{ timestamper_cmd }} > {{ workspace }}/build.log
RESULT=$?
exit $RESULT

View File

@ -18,3 +18,6 @@ exclude_containers:
- sensu-base
yum:
- opendaylight
timestamper_cmd: >-
| awk '{ print strftime("%Y-%m-%d %H:%M:%S |"), $0; fflush(); }'