Skip to content
Snippets Groups Projects
Commit bf4c4c42 authored by Ben Heasly's avatar Ben Heasly
Browse files

print more info when publishing reference data

parent a646a1a8
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ if 7 ~= exist(tempRoot, 'dir') ...@@ -58,6 +58,7 @@ if 7 ~= exist(tempRoot, 'dir')
end end
% iterate subfolders of referenceRoot for example names % iterate subfolders of referenceRoot for example names
fprintf('Looking for examples in <%s>:', referenceRoot);
[exampleNames, nExamples] = subfolderNames(referenceRoot); [exampleNames, nExamples] = subfolderNames(referenceRoot);
artifactCell = cell(1, nExamples); artifactCell = cell(1, nExamples);
for ee = 1:nExamples for ee = 1:nExamples
...@@ -76,6 +77,7 @@ for ee = 1:nExamples ...@@ -76,6 +77,7 @@ for ee = 1:nExamples
end end
artifacts = [artifactCell{:}]; artifacts = [artifactCell{:}];
function [names, nNames] = subfolderNames(parentPath) function [names, nNames] = subfolderNames(parentPath)
parentDir = dir(parentPath); parentDir = dir(parentPath);
parentDir = parentDir(3:end); parentDir = parentDir(3:end);
...@@ -87,7 +89,7 @@ function artifact = publishFile(rdtConfig, fileName, remotePath, exampleName, ve ...@@ -87,7 +89,7 @@ function artifact = publishFile(rdtConfig, fileName, remotePath, exampleName, ve
% describe the example % describe the example
artifactPath = fullfile(remotePath, exampleName); artifactPath = fullfile(remotePath, exampleName);
description = sprintf('version <%s> example <%s>', versionName, exampleName); description = sprintf(' version <%s> example <%s>', versionName, exampleName);
disp(description); disp(description);
if dryRun if dryRun
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment