Reputation: 21
I am using MATLAB 2023b and win-11, and using Gitlab (installed on a private cloud infra) I want to set up a CICD pipeline and run the MATLAB code when I push the code to repo.
I used this script in my gitlab yaml file.
stages:
- Test
Testing:
tags:
- matlab-win
stage: Test
script:
- matlab -batch "runner"
where "runner.m" is my MATLAB file.
runner.m is as below
a = 10; b = 12; disp(a+b)
This takes an indefinite amount of time to run and nearing the pipeline timeout it sends this warning:
WARNING: Failed to terminate process: failed to attach to the console of the process being terminated: Access is denied.
WARNING: Failed to force-kill: exit status 128
I tried using admin access too but the issue is same.
I checked the task manager as well and can see MATLAB running as background process when the CI pipeline runs, but is using too less CPU and memory.
Any inputs?
Upvotes: 1
Views: 228
Reputation: 21
So I got the issue gitlab-runner service wasnt running with admin access. I gave it the admin access and now its working fine.
Upvotes: 0