1

在输出中打印以下内容

> [A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#task-system;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#tasks;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#tracking;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#cache;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#testing;0.13.13 ...[0m
[A
[2K[0m[[0minfo[0m] [0mResolving org.scala-sbt#test-agent;0.13.13 ...[0m
[A

代替

[info] Resolving org.scala-sbt#task-system;0.13.13 ...
[info] Resolving org.scala-sbt#tasks;0.13.13 ...
[info] Resolving org.scala-sbt#tracking;0.13.13 ...
[info] Resolving org.scala-sbt#cache;0.13.13 ...
[info] Resolving org.scala-sbt#testing;0.13.13 ...

我怎样才能摆脱多余的垃圾字符?我正在使用 jenkins 使用 sbt 构建 scala 项目。

4

1 回答 1

6

关闭颜色输出(从这里):

-Dsbt.log.noformat=true
于 2017-06-21T05:32:01.987 回答