5

This is the weirdest thing ever and I've been spinning my wheels on it and I can't seem to figure it out. Ever since I enabled retain long output for Jenkins, it's been ignoring newlines on the blocks of output from my Pytest's captured stdout setup, but nowhere else! If you look at captured stdout, the newlines become literal characters and not actual newlines:

captured stdout setup

But if you look at any other section of the console output, it looks 100% fine:

captured stderr setup

This is blowing my mind, since the jUnit xml looks fine and if I run the pytest with the -s flag on any terminal or even on Jenkins it looks fine as well. Even if I switch off retain long output, it looks completely fine, but that truncates the console output which is less than ideal for what I'm trying to do.

Anybody know why this might be happening?

Thanks for reading this thread.

Eddie Rivas
  • 185
  • 1
  • 2
  • 9

1 Answers1

0

In your ansible.cfg, change the default callback:

stdout_callback = debug
noccoa0
  • 56
  • 3