Note : i am new to script , can u add the description in steps aswell
I have abc model and respective .m file to load all the parmeter .
Now i need to generate the code and publish in jenkins pipeline.
i need to run the run the script calling the matlab model and respective parameter files to generate the code.
I tried withthis .bat file calling the .m file in jenkins but its taking much time and code gen is also not happening.
%.bat file%
PATH=%MATLAB_HOME_2021%\bin;%PATH%
matlab.exe -nodesktop -nosplash -r "run('./abc.m');exit" -wait -logfile logfile
REM To remove the build folder created for matlab execution
:://RD /S /Q "slprj"
%.m file%
run('abc_StartUp.m');
warning('off','all')
%generate code
try
open_system('abc.slx')
rtwbuild('abc')
catch
end
end
clear;
**************************
Did my above file content is correct , can anyone support on this.