• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • matlab-plugin
    • jenkins 2.450 pipelinescript using MATLAB plugin 2.12, MATLAB 2021b

      When trying to execute a simple MATLAB command (e.g. runMATLABCommand(command: 'disp("Hello World!")')) I get the console output:

      Hello World!

      ERROR: MATLAB error Exit Status: 0x00000001 exit status 1

      I tried it with MATLAB R2017b and R2021b. The error arises only with R2021b.

       

          [JENKINS-72899] MATLAB R2021b get exit Error

          Lukas created issue -
          Lukas made changes -
          Priority Original: Critical [ 2 ] New: Blocker [ 1 ]
          Lukas made changes -
          Attachment New: screenshot-1.png [ 62331 ]

          Hi Lukas,

          Could you please try the solution mentioned below
          https://in.mathworks.com/matlabcentral/answers/765851-why-do-jenkins-builds-with-matlab-fail-on-a-windows-machine

          Regards
          Nikhil

          MathWorks Ci Team added a comment - Hi Lukas, Could you please try the solution mentioned below https://in.mathworks.com/matlabcentral/answers/765851-why-do-jenkins-builds-with-matlab-fail-on-a-windows-machine Regards Nikhil
          MathWorks Ci Team made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]

          This is not a bug. This may be due to license conflicts of Jenkins running as SYSTEM user and MATLAB having permission to the different user. as mentioned here
          https://in.mathworks.com/matlabcentral/answers/765851-why-do-jenkins-builds-with-matlab-fail-on-a-windows-machine

          MathWorks Ci Team added a comment - This is not a bug. This may be due to license conflicts of Jenkins running as SYSTEM user and MATLAB having permission to the different user. as mentioned here https://in.mathworks.com/matlabcentral/answers/765851-why-do-jenkins-builds-with-matlab-fail-on-a-windows-machine
          MathWorks Ci Team made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Lukas added a comment -

          Thank you for your response. I had previously encountered and attempted the solution you mentioned, but unfortunately, it didn't resolve my issue. I'd like to add a couple of key points to clarify the context:

          1. Jenkins is configured to run as a program rather than a service, specifically to allow interactions with the desktop.
          2. The problem exclusively occurs with MATLAB R2021b, whereas R2017b operates as expected on the same machine and under the same user account. This distinction suggests that licensing for R2021b is unlikely to be the source of the issue.
          3. The system works when I use a CMake script to execute MATLAB.

          Lukas added a comment - Thank you for your response. I had previously encountered and attempted the solution you mentioned, but unfortunately, it didn't resolve my issue. I'd like to add a couple of key points to clarify the context: Jenkins is configured to run as a program rather than a service, specifically to allow interactions with the desktop. The problem exclusively occurs with MATLAB R2021b, whereas R2017b operates as expected on the same machine and under the same user account. This distinction suggests that licensing for R2021b is unlikely to be the source of the issue. The system works when I use a CMake script to execute MATLAB.
          Lukas made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Lukas made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]

            luki984 Lukas
            luki984 Lukas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: