When I run the Play commands, the logs look beautiful and clean in the terminal, but when I create my application in Jenkins, the color codes are displayed in the logs, which is surprisingly difficult to read.
Command Line Logs:
[info] ApplicationSpec [info] Application should [info] + send 404 on a bad request [info] x render the index page [error] '401' is not equal to '200' (ApplicationSpec.scala:25) [info] Total for specification ApplicationSpec [info] Finished in 134 ms [info] 2 examples, 1 failure, 0 error [error] Failed: Total 3, Failed 2, Errors 0, Passed 1 [error] Failed tests: [error] ApplicationSpec [error] IntegrationSpec [error] (test:test) sbt.TestsFailedException: Tests unsuccessful [error] Total time: 23 s, completed Mar 26, 2014 10:00:34 AM
Jenkins Magazines:
[0m[[0minfo[0m] [0mApplicationSpec[0m [0m[[0minfo[0m] [0mApplication should[0m [0m[[0minfo[0m] [0m[32m+[0m send 404 on a bad request[0m [0m[[0minfo[0m] [0m[33mx[0m render the index page[0m [0m[[31merror[0m] [0m '401' is not equal to '200' (ApplicationSpec.scala:25)[0m [0m[[0minfo[0m] [0mTotal for specification ApplicationSpec[0m [0m[[0minfo[0m] [0m[34mFinished in 229 ms[0m[0m [0m[[0minfo[0m] [0m[34m2 examples, 1 failure, 0 error[0m[0m [0m[[31merror[0m] [0mFailed: Total 3, Failed 2, Errors 0, Passed 1[0m [0m[[31merror[0m] [0mFailed tests:[0m [0m[[31merror[0m] [0m ApplicationSpec[0m [0m[[31merror[0m] [0m IntegrationSpec[0m [0m[[31merror[0m] [0m(test:[31mtest[0m) sbt.TestsFailedException: Tests unsuccessful[0m [0m[[31merror[0m] [0mTotal time: 6 s, completed Mar 25, 2014 2:28:01 PM[0m
As you can see, the output of Jenkins still has the same content, but the color codes make it so noisy that it is very difficult to understand what is happening.
I found limited information on how to disable color codes for the SBT tool, but I cannot figure out how to pass this through play when I run my build through Jenkins.
cdeszaq Mar 26 '14 at 15:21 2014-03-26 15:21
source share