This PR introduces new option Install using MPM under Install MATLAB of Tools section.
This feature supports to Install MATLAB runtime during the Job execution
User can select Install Automatically option to see Install using MPM option.
Once clicked user will see two text boxes one for Version and other for Product as shown below
User can enter MATLAB version and product list to be installed.
Accordingly plugin will download lates version of mpm executable based on os and its architecture. and invoke it to install MATLAB.
Plugin will also download the matlab-batch executable every time the job is run and keeps it in PATH varible.
User should manually create MLM_LICENSE_TOKEN environment in order to execute the MATLAB using matlab-batch
Setting up license
Linux dependencies for MATLAB installation is mentioned under the Version help section. and the plugin does not install any dependencies to reduce the permission-related complexities.
Inorder to avoid invoking mpm executable everytime. plugin maintains the installed_matlab_product_list.txt which will contain all the products that user provided through the text box.
Plugin verifies the previously installed product list and invokes mpm only if new product is found which is not part of the list. It will just skip the installation otherwise.
Only edge case or known issue with this approach is. the file will not contain the dependant products which mpm installs automatically during the installation. In that case mpm will be invoked again with same product and plugin will wait for mpm to exit with proper exit message. I am working simultaneously on this issue
This PR introduces new option
Install using MPM
underInstall MATLAB
ofTools
section.Install Automatically
option to seeInstall using MPM
option.mpm
executable based on os and its architecture. and invoke it to install MATLAB.matlab-batch
executable every time the job is run and keeps it inPATH
varible.MLM_LICENSE_TOKEN
environment in order to execute the MATLAB usingmatlab-batch
installed_matlab_product_list.txt
which will contain all the products that user provided through the text box.Thanks & Regards Nikhil