Gradle has option
console which behaves differently if gradle is not attached to a console. From docs:
--console=(auto,plain,rich,verbose) ... Set to auto (the default) to enable color and other rich output in the console output when the build process is attached to a console, or to generate plain text only when not attached to a console. This is the default when Gradle is attached to a terminal.
When I run it locally with default parameter I see rich output, but when in Jenkins - plain.
What does is mean when program is attached to a terminal? Don’t we always run CLI programs through the terminal?