Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 0f06f4e

Browse files
committed
Patch fix for file error issue
1 parent a5418f1 commit 0f06f4e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/resources/+ciplugins/+jenkins/BuildReportPlugin.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66

77
function runTaskGraph(plugin, pluginData)
88
[email protected](plugin, pluginData);
9-
fID = fopen(fullfile(getenv("WORKSPACE"),'.matlab/buildArtifact.json'), 'w');
9+
[fID, msg] = fopen(fullfile(getenv("WORKSPACE"),'.matlab/buildArtifact.json'), 'w');
10+
11+
if fID == -1
12+
warning('BuildTool:artifactFileWarnning','Could not open a file for Jenkins build result table due to: %s', msg);
13+
fID = 1;
14+
end
15+
1016
taskDetails = struct();
1117
for idx = 1:numel(pluginData.TaskResults)
1218
taskDetails(idx).name = pluginData.TaskResults(idx).Name;

0 commit comments

Comments
 (0)