Skip to content

FF_SCRIPT_SECTIONS with script colors will override the default

Summary

When using colors in a CI script, these will override the green color in which the script is usually shown.

This job logs shows a working example: https://gitlab.com/just-ci/tests/python/-/jobs/5919164147

Steps to reproduce

Have a script which sets shell colors, such as:

echo -e " \e[32mrecommended value set\e[0m: ${RECOMMENDED}."

Actual behavior

Colors are overridden

Expected behavior

Everything stays green and colors are ignored. It would however be helpful if the color syntax was not shown, for readability.

Relevant logs and/or screenshots

image

Environment description

gitlab.com, shared runners, docker executor on linux

Used GitLab Runner version

Running with gitlab-runner 16.6.0~beta.105.gd2263193 (d2263193)
  on blue-2.saas-linux-small-amd64.runners-manager.gitlab.com/default XxUrkriX, system ID: s_f46a988edce4
  feature flags: FF_SCRIPT_SECTIONS:true, FF_USE_IMPROVED_URL_MASKING:true
Preparing the "docker+machine" executor 00:05
Using Docker executor with image ghcr.io/tomwright/dasel:alpine ...