【发布时间】:2017-12-10 08:01:19
【问题描述】:
Jenkins freestyle 上的以下命令在 Windows 环境中不会退出(永远运行)。但是,当我在 CMD 中运行相同的命令时,它会按预期工作。
matlab -nodesktop -nosplash -minimize -c "path_to_license" -r "run('path_to_run_all_tests_script')" -wait -logfile unittestlog.txt set output=%errorlevel% MORE unittestlog.txt EXIT %output%
我做错了什么?
编辑:
这是命令调用的 Matlab 脚本:
import matlab.unittest.TestSuite;
disp('Hello from TestSuite');
try
suite = TestSuite.fromPackage('test','IncludingSubpackages',true);
results = run(suite);
display(results);
catch e
disp(getReport(e,'extended'));
exit(1);
end
exit(any([results.Failed])+1);
【问题讨论】:
标签: windows matlab jenkins build continuous-integration