browbeat/ansible/oooq/roles/browbeat-classify/files/uuid_extract.sh
agopi 773f06aa16 Work around ansible issues using Browbeat-ML to classify pipeline builds
1. Fixed the bug where the browbeat_run.log file is empty.
2. UUID will now be grepped from the log file directly. Bypassing an
ansible issue that made grepping it directly from the registered result
impossible in specific situations.

Change-Id: Icc0bfb18d0491622d523d30412674f2cd62e80e9
2017-06-27 19:33:31 +00:00

6 lines
100 B
Bash

#!/bin/bash
grep -o 'UUID: [^,]*' $1 | tail -1 | grep -o ' [^,]*' | tr -d ' ' | sed 's/\x27/ /g'