jenkins-matlab-plugin icon indicating copy to clipboard operation
jenkins-matlab-plugin copied to clipboard

The hyperlink of the task doesn't point to the logs correctly when the tasks are skipped

Open Vahila opened this issue 5 months ago • 0 comments

When the tasks in the buildfile are skipped, the hyperlink of the task doesn't point to the build task logs. It just opens the starting of that Jenkins build log.

Reproduction steps: Buildfile.m function plan = buildfile % Create a plan from the task functions plan = buildplan(localfunctions);

% Specify the inputs and outputs of the "pcode" task plan("pcode").Inputs = "source/**/*.m"; plan("pcode").Outputs = plan("pcode").Inputs.replace(".m",".p");

% Specify the inputs and outputs of the "archive" task plan("archive").Inputs = plan("pcode").Outputs; plan("archive").Outputs = "source.zip"; end

function pcodeTask(context) % Create P-code files filePaths = context.Task.Inputs.paths; pcode(filePaths{:},"-inplace") end

function archiveTask(context) % Create ZIP file task = context.Task; zip(task.Outputs.paths,task.Inputs.paths) end

  • Add the build file in your workspace. Create a folder 'source' in the workspace.
  • Run the 'archive' task twice.
  • In the second run, both the tasks 'pcode' and 'archive' are skipped.
  • When the links from the MATLAB Build Results page(Hyperlinks to the task names) are clicked, it points to the start of Jenkins build log page not to the start of the buildtool task logs.

Vahila avatar Jan 31 '24 08:01 Vahila