mathworks / jenkins-matlab-plugin

This plugin enables you to run MATLAB® and Simulink® as part of your Jenkins™ build.
47 stars 54 forks source link

Exit code shown in the stage exception failure message is incorrect #258

Closed Vahila closed 9 months ago

Vahila commented 1 year ago

In 2.10.1-SNAPSHOT-Qualification, the exit code shown in the message in a stage exception failure is incorrect.

I am using the following script: exit(5)

In 2.10.0 MATLAB plugin(already released), the message shown is Received a nonzero exit code 1 while trying to run MATLAB In 2.10.1, the message shown is Received a nonzero exit code 5 while trying to run MATLAB.

The same discrepancy is seen with below script as well

sameagen-MW commented 1 year ago

This is an intended feature of the run-matlab-command binary. We're considering updating this as an enhancement in the future but for now it can be considered separately from the Jenkins plugin features.

sameagen-MW commented 9 months ago

I'm going to go ahead and close this issue since it's a duplicate of one present on the run-matlab-command repo.