-
-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable AnsiConsoleRenderer in TeamCity and Azure Pipelines #2966
Comments
@KatoStoelen I've opened PRs to enable the In the meantime (as a workaround) if you want to enable colors today, you can "cheat" by setting an environment variable that will tell Cake that ANSI is supported:
This works for any CI system, including TeamCity and Azure Pipelines. Just be aware that the colors on TeamCity don't look as nice as you'd expect because Cake sets a black background color on the messages, which are displayed on a white background in TeamCity if you're using the default theme. Also, some messages such as the summary report at the end of the build (with green forecolor on a regular console) are not emitting ANSI color codes and instead are using |
Thanks, @augustoproiete! Went looking for ways to customize I guess with your current PRs, there is no way to opt-out of ANSI coloring? |
@KatoStoelen Yes, as you probably noticed the colors are all hard-coded in AnsiConsoleRenderer. at the moment, so supporting custom color palettes would be a new feature to be added. Cake also doesn't have a way of opting out of ANSI coloring and it would be another new feature to be added. On this one it might make sense to follow the https://no-color.org standard that a number of other CLI systems use. |
I'll add new feature requests for both (customizable palette The opt-out feature might be a great addition to this feature, since enabling ANSI coloring in TeamCity, where most people (I'm assuming) have a white background, would be somewhat intrusive. Customizable palette would also be great, but I understand that this one might require more effort. |
…le on Windows * closes cake-build#2970
…ty 9.1&later * closes cake-build#2969
…ty 9.1&later * closes cake-build#2969
…ty 9.1&later * closes cake-build#2969
…-azure-pipelines GH-2966: Enable AnsiConsoleRenderer when running on Azure Pipelines
🎉 This issue has been resolved in version v1.1.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
I see that AnsiConsoleRenderer is enabled for GitHub Actions (and terminals that supports it).
Since both TeamCity (since 9.1) and Azure Pipelines now supports ANSI coloring, it would make the world much more colorful if AnsiConsoleRenderer is enabled for those build systems as well.
The text was updated successfully, but these errors were encountered: