Add timestamp to containers' build log
In order to ease investigation of failures for containers build, add timestamp to stdout and stderr log files. Change-Id: I59198457044326193593948ed8c780e24ccebbc4
This commit is contained in:
parent
05cb96dc29
commit
7c8d723304
|
@ -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
|
||||
|
||||
|
|
|
@ -18,3 +18,6 @@ exclude_containers:
|
|||
- sensu-base
|
||||
yum:
|
||||
- opendaylight
|
||||
|
||||
timestamper_cmd: >-
|
||||
| awk '{ print strftime("%Y-%m-%d %H:%M:%S |"), $0; fflush(); }'
|
||||
|
|
Loading…
Reference in New Issue