当我在Linux机器上运行时,显示其执行日志的命令,但当我通过ssh触发相同的命令时,它不显示日志
当我在putty中运行下面的命令时,它显示的执行日志如下当我在Linux机器上运行时,显示其执行日志的命令,但当我通过ssh触发相同的命令时,它不显示日志,linux,maven,tfs,fortify,Linux,Maven,Tfs,Fortify,当我在putty中运行下面的命令时,它显示的执行日志如下 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.te
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构建的第一步相同的输出。一个简单的修复方法是将命令的输出通过管道传输到文本文件
[Fortify_command] > outputfile.txt