mathworks / jenkins-matlab-plugin

This plugin enables you to run MATLAB® and Simulink® as part of your Jenkins™ build.
47 stars 54 forks source link

MATLAB build results not reported as expected #302

Closed mw-hrastega closed 8 months ago

mw-hrastega commented 8 months ago

I ran a MATLAB build using the Jenkins plugin. Even though the build ran successfully, the MATLAB build results were not correctly reflected in the Jenkins interface.

Here is my build log followed by a screenshot of the reported build results:

Started by user Houman Rastegarfar Running as SYSTEM Building in workspace C:\Users\hrastega\AppData\Local\Jenkins.jenkins\workspace\myProject Selected Git installation does not exist. Using Default The recommended git tool is: NONE No credentials specified

git.exe rev-parse --resolve-git-dir C:\Users\hrastega\AppData\Local\Jenkins.jenkins\workspace\myProject.git # timeout=10 Fetching changes from the remote Git repository git.exe config remote.origin.url https://github.com/mw-hrastega/Times-Table-App.git # timeout=10 Fetching upstream changes from https://github.com/mw-hrastega/Times-Table-App.git git.exe --version # timeout=10 git --version # 'git version 2.27.0.windows.1' git.exe fetch --tags --force --progress -- https://github.com/mw-hrastega/Times-Table-App.git +refs/heads/:refs/remotes/origin/ # timeout=10 git.exe rev-parse "refs/remotes/origin/main^{commit}" # timeout=10 Checking out Revision b2381bc40b9ab8e1f010336e9cd9812579ebc8f4 (refs/remotes/origin/main) git.exe config core.sparsecheckout # timeout=10 git.exe checkout -f b2381bc40b9ab8e1f010336e9cd9812579ebc8f4 # timeout=10 Commit message: "Update buildfile.m" git.exe rev-list --no-walk b2381bc40b9ab8e1f010336e9cd9812579ebc8f4 # timeout=10

Prepending MATLAB to the PATH variable from this location: C:\Program Files\MATLAB\R2023b\bin

Generating MATLAB script with content: buildtool

#################### Starting command output #################### [myProject] $ C:\Users\hrastega\AppData\Local\Jenkins.jenkins\workspace\myProject.matlab\rWi2fRQn\run-matlab-command.exe '"setenv('MW_ORIG_WORKING_FOLDER', cd('C:\Users\hrastega\AppData\Local\Jenkins.jenkins\workspace\myProject/.matlab/rWi2fRQn'));build_i6h8TEVM"' ** Opened project 'Times Table App'

Starting check Analysis Summary: Total Files: 15 Errors: 0 (Threshold: 0) Warnings: 3 (Threshold: Inf) Finished check

** Starting test ......

Test Summary: Total Tests: 6 Passed: 6 Failed: 0 Incomplete: 0 Duration: 0.41086 seconds testing time.

** Finished test

Starting archive Finished archive

** Closed project 'Times Table App'

Finished: SUCCESS

image

nbhoski commented 8 months ago

Hi @mw-hrastega which version of MATLAB are you using ? I did not see the sentinels printed in the log . I suspect the version which you are using does to have Davids changes. Coud you try with latest version

I verified in 23bupdate release and its working fine.

image

Vahila commented 8 months ago

Hi Houman, I checked with the hpi generated from dev_main and 24a MATLAB, everything is working as expected at my end. Sharing the screenshots for reference.

image

image

image

mw-hrastega commented 8 months ago

Hi, @Vahila and @nbhoski. Thanks for investigating. My Jenkins instance runs on my Windows machine and I used R2023b for my Jenkins build (the latest release). Are you saying that this feature is not supported in R2023b?

Adding @davidbuzinski to the thread.

davidbuzinski commented 8 months ago

Hi, @Vahila and @nbhoski. Thanks for investigating. My Jenkins instance runs on my Windows machine and I used R2023b for my Jenkins build (the latest release). Are you saying that this feature is not supported in R2023b?

Adding @davidbuzinski to the thread.

Hi @mw-hrastega

Support for this feature was added in all of the releases of MATLAB before R2024a through an update version. Which update version of R2023b are you using? Can you try using the latest update?

Thanks, David

Vahila commented 8 months ago

Hi, @Vahila and @nbhoski. Thanks for investigating. My Jenkins instance runs on my Windows machine and I used R2023b for my Jenkins build (the latest release). Are you saying that this feature is not supported in R2023b?

Adding @davidbuzinski to the thread.

Hi @mw-hrastega, the build visualization is supported from 22bU8, 23aU6, 23bU6. Can you try using 23b U6?

mw-hrastega commented 8 months ago

Hi, @Vahila and @nbhoski. Thanks for investigating. My Jenkins instance runs on my Windows machine and I used R2023b for my Jenkins build (the latest release). Are you saying that this feature is not supported in R2023b? Adding @davidbuzinski to the thread.

Hi @mw-hrastega, the build visualization is supported from 22bU8, 23aU6, 23bU6. Can you try using 23b U6?

Thank you, Vahila. I installed R2024a and used it to run a Jenkins build.

mw-hrastega commented 8 months ago

Hi, @Vahila and @nbhoski. Thanks for investigating. My Jenkins instance runs on my Windows machine and I used R2023b for my Jenkins build (the latest release). Are you saying that this feature is not supported in R2023b? Adding @davidbuzinski to the thread.

Hi @mw-hrastega

Support for this feature was added in all of the releases of MATLAB before R2024a through an update version. Which update version of R2023b are you using? Can you try using the latest update?

Thanks, David

Thanks for clarifying, David. I ended up using R2024a. However, I feel the behavior without an updated MATLAB release is still confusing. Could you work with @nbhoski to find a solution? For example, a better error message could have saved me.

nbhoski commented 8 months ago

closing it as not a bug