Skip to content
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

Flyway output not colored in jenkins when using ansiColors plugin #2590

Closed
morl-la opened this issue Dec 5, 2019 · 3 comments
Closed

Flyway output not colored in jenkins when using ansiColors plugin #2590

morl-la opened this issue Dec 5, 2019 · 3 comments

Comments

@morl-la
Copy link

morl-la commented Dec 5, 2019

Which version and edition of Flyway are you using?

6.1.0

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Jenkins Flyway Runner plugin

Which database are you using (type & version)?

postgres 11.4 but doesn't really matter

Which operating system are you using?

linux

What did you do?

Running a jenkins build containing a call to flyway wrapped with the ansiColor('xterm') step.

What did you expect to see?

The flyway output colored the same as in a standard terminal

What did you see instead?

Everything in black

From the documentation I quote: "Colors are suppressed if stdout is not associated with a terminal."
Perhaps there should be a configuration parameter to force color encodings.

@alextercete
Copy link

@morl-la We're thinking about adding a new CLI-only option -color= which would accept always, never or auto (the current behaviour, which would be the default if the option is omitted). What do you think?

@morl-la
Copy link
Author

morl-la commented Dec 13, 2019

Sounds like it would allow what I need. Thanks.

@morl-la
Copy link
Author

morl-la commented Jan 27, 2020

Great Success!
image

dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants