gpt4 book ai didi

jenkins - jenkins 中的 sbt 输出给出垃圾字符

转载 作者:行者123 更新时间:2023-12-02 00:44:30 25 4
gpt4 key购买 nike

在输出中打印以下内容

> [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 项目。

最佳答案

Turn off the color output (来自 here ):

-Dsbt.log.noformat=true

关于jenkins - jenkins 中的 sbt 输出给出垃圾字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44665301/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com