Part of our pipeline uses Maven to build our Java SDK and run some tests on it. Maven is somehow able to colourise its output, like so;
I am trying to colourise the output of another task, but I am unable to get this to work (I tried to attach a screenshot, but apparently I can only attach one image).
Here’s what I’m trying:
platform: linux image_resource: type: docker-image source: repository: alpine run: path: /bin/sh args: - -c - | echo '\033[0;31m'"Hello, world!"'\033[0m'
And many other variants of this. Does anyone have any idea how I might get this to work?