Closed mw-hrastega closed 9 months ago
Here's a screenshot of how matlab -batch
handles this case.
I think that matching the behavior of the matlab
executable is probably my preference, but I would be open to potentially changing the behavior if that ends up being the group consensus.
Here's a screenshot of how
matlab -batch
handles this case.
Thanks @sameagen-MW for including a screenshot.
Did the warning message show up in the Jenkins job Houman?
Did the warning message show up in the Jenkins job Houman?
Hmm. Not sure. Didn't inspect the build log 🤒
Hi, with the hpi file generated out of latest changes in 2.11.2 qual branch, I see weird behavior when just specifying -sd alone on Windows. Attaching screenshots for reference. Project run on Windows agent: Console log:
Jenkins project config:
And when project is run on Linux, I see some errors as below. Console log: Jenkins Configure page:
I tried it on command line and its exacttly the same behaviour as Jenkins
@sameagen-MW is there any limitation from go lang exec that we are using ? since its not throwing any error on -sd
Yep, after looking into it I can confirm that this is an issue with the way that run-matlab-command
handles arguments. In this case what's happening is because we're appending -batch "command"
after the flags, the full command would be matlab -sd -batch "command"
, and it registers -batch
as the argument for -sd
leading to an error in parsing "command"
.
I'll close the issue here and open an enhancement on run-matlab-command
.
I deleted "matlab" from the Startup Options box and ran a build with -sd alone as the startup option. I was expecting an incomplete option to result in a Jenkins build error; however, the build passed.