I am using the script node step in a job to output some data, then using the Key value data log filter to extract the value so it can be used as a variable later in the job. As shown in the screenshot, the filter is extracting the [0m reset format string from the value.
The bash script being executed is simply using echo to print the value, and the log filter is using ^.+?\s*data=\s*(.+)$ as the pattern. Since the output is being detected as CHANGED, it is being formatted with color tags which the log filter is picking up. Is there a way to avoid this issue?
I am using the script node step in a job to output some data, then using the
Key value data
log filter to extract the value so it can be used as a variable later in the job. As shown in the screenshot, the filter is extracting the[0m
reset format string from the value.The bash script being executed is simply using echo to print the value, and the log filter is using
^.+?\s*data=\s*(.+)$
as the pattern. Since the output is being detected asCHANGED
, it is being formatted with color tags which the log filter is picking up. Is there a way to avoid this issue?