2011-03-10 28 views
0

這些命令行在linux(ubuntu)上運行,但試圖通過hudson運行它們時,在控制檯輸出嘗試在「構建」下運行「Execute Shell」中的一個命令並在Jenkins(原hudson)中運行python腳本

從評論一個(第一個)顯示出來:

  1. nosetests -s --with覆蓋--cover封裝的PRU找到。 -name 「* test.py」
  2. pylint的--rcfile腳本/ pylintrc -f可解析的PRU> pylint.txt回聲 「pylint的完整」
  3. sloccount --wide --details的PRU> sloccount.sc
+1

你可以發佈你運行的命令嗎? – Sagar 2011-03-10 19:04:51

+0

1. nosetests -s --with-coverage --cover-package prus'find。 -name「* test.py」' 2. pylint --rcfile scripts/pylintrc -f parseable prus> pylint.txt echo「pylint complete」 3. sloccount --wide --details prus> sloccount.sc – kamal 2011-03-11 18:36:33

回答

1

它看起來像你將輸出從2輸入到pylint.txt中,而3輸入到sloccount.sc中。您需要將管道傳輸到stdout和文件以獲取文件,以及將輸出發送到Hudson。看一下tee.exe,它會爲你做到這一點。

相關問題