首页 > 解决方案 > Jenkins Console Output Format

问题描述

When I prepare a job which includes "helm diff" or "git diff", the output format is too difficult to read(it is just plain-text) and there must be a plugin or a way to see these kinds of outputs in a better format even as a colourfull format. Could you help me to find a solution for that?

标签: gitjenkinskubernetes-helm

解决方案


是的,“AnsiColor 插件”帮助了我,但正确的“ansiColor('xterm')”配置花了我这么多时间

下面的配置解决了我的问题

    ansiColor('xterm') {
       sh "command"
     }

下面的配置对我不起作用

      options {
        ansiColor('xterm')
       }

推荐阅读