【发布时间】:2017-07-05 09:44:50
【问题描述】:
我使用 Jenkins 管道运行黄瓜测试。当我在 bash 控制台中运行黄瓜测试时,我看到了彩色的输出。但在 Jenkins 控制台中仅输出单色文本。 我从 bash 脚本文件运行黄瓜测试,并尝试添加到此文件:
CUCUMBER_COLORS='passed=green,bold:passed_param=green,skipped=cyan,bold:skipped_param=cyan,failed=red,bold:failed_paramm=red,pedning=yellow'
export CUCUMBER_COLORS
喜欢这篇文章https://github.com/cucumber/cucumber/wiki/Console-Colours 但这无济于事。
【问题讨论】:
标签: jenkins cucumber jenkins-pipeline