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

Commit cd32354

Browse files
committed
Updated as per review comments
1 parent de5db98 commit cd32354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function runTaskGraph(plugin, pluginData)
99
[fID, msg] = fopen(fullfile(getenv("WORKSPACE"),".matlab/buildArtifact.json"), "w");
1010

1111
if fID == -1
12-
warning('ciplugins:jenkins:BuildReportPlugin:UnableToOpenFile','Could not open a file for Jenkins build result table due to: %s', msg);
12+
warning("ciplugins:jenkins:BuildReportPlugin:UnableToOpenFile","Could not open a file for Jenkins build result table due to: %s", msg);
1313
else
1414
closeFile = onCleanup(@()fclose(fID));
1515
taskDetails = struct();
@@ -21,8 +21,8 @@ function runTaskGraph(plugin, pluginData)
2121
taskDetails(idx).duration = string(pluginData.TaskResults(idx).Duration);
2222
end
2323
a = struct("taskDetails",taskDetails);
24-
s = jsonencode(a,"PrettyPrint",true);
25-
fprintf(fID, '%s',s);
24+
s = jsonencode(a,PrettyPrint=true);
25+
fprintf(fID, "%s",s);
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)