开发者

Trying to run one command in "Execute Shell" and a python script in Jenkins (formerly hudson) under "build"

开发者 https://www.devze.com 2023-02-16 15:01 出处:网络
These run on the command line in linux (ubuntu) but when trying to run them via hudson, only the first one (first one) shows up in the console Output

These run on the command line in linux (ubuntu) but when trying to run them via hudson, only the first one (first one) shows up in the console Output

From comment:

  1. nosetests -s --with-coverage --cover-package prus find . -name "*tes开发者_如何学Ct.py"
  2. pylint --rcfile scripts/pylintrc -f parseable prus > pylint.txt echo "pylint complete"
  3. sloccount --wide --details prus > sloccount.sc


It looks like your piping the output from 2 into pylint.txt, and 3 is being piped into sloccount.sc. You need to pipe to both stdout and to the file in order to get your files populates, as well as have the output go to Hudson. Take a look at tee.exe, it will do that for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消