How to close Matlab by Jenkins without an error message

1 view (last 30 days)
Hi,
I am using Jenkins to run serval Matlab Scripts. My configuration is
- Jenkins 2.204.2
- Matlab R2013b 32 bit
- MATLAB Plugin 1.1.2
Matlab will started correctly and also the scripts working well. The only issue is to close Matlab. Jenkins detects the closing process as error "MATLAB is exiting because of fatal error". That mark the build process as failure and didn't get a successful build.
I tried to start Matlab by Batch Command and also by the Matlab Plugin. Both generate the closing error.
Now I use the Matlab Plugin, because the Batch Command generates a duplicated log messages.
I used different methods to close Matlab...without success
exit;
exit(0);
quit;
quit(0);
quit(force);
How can Matlab be closed without marking the build as failure?

Answers (1)

Stefan
Stefan on 5 Mar 2020
Hi,
before it only works when i do the force exit. I fixed the force exit by closing the data dictionary of TargetLink :)
Now, i am still closing it like in examples of the Matlab Jenkins Plugin. I use the Matlab command "cd C:\Folder; TestScript; exit". But Matlab "crashs" and Jenkins detect it as failured Build process.
17:56:47 Abnormal termination:
17:56:47 Unknown exception 0xc0150014
17:56:47 MATLAB is exiting because of fatal error
17:56:47 ERROR: MATLAB error (starter line:1418) Exit Status: 0xc0150014
17:56:47 Build step 'Run MATLAB Tests' changed build result to FAILURE

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2013b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!