命令显示,当我在Linux机器上运行,但是当我触发通过ssh它不显示日志相同的命令其执行日志

问题描述 投票:-1回答:1

当我运行在油灰中其示出执行日志如下下面的命令

sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.test:sample:jar:0.0.5-SNAPSHOT`
----------
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 159, column 12
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 155, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]

当我在TFS中的SSH任务运行相同的命令,上述执行日志不显示与如下获得输出。

2019-01-31T17:48:41.2940860Z sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate
2019-01-31T17:48:42.2004980Z ##[section]Finishing: Fortify scanning

我希望得到的输出相同的TFS构建的第一步。

linux maven tfs fortify
1个回答
0
投票

一个简单的解决将是管道命令的输出到一个文本文件中。

[Fortify_command] > outputfile.txt
© www.soinside.com 2019 - 2024. All rights reserved.