簡體   English   中英

當我在 Linux 機器上運行時顯示其執行日志的命令,但是當我通過 ssh 觸發相同的命令時,它不顯示日志

[英]command showing its execution log when I run in Linux machine but when I trigger same command over ssh its not displaying log

當我在 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.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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM